Struct workspace_node_tools::git::commands::Git
source · pub struct Git;Implementations§
source§impl Git
impl Git
sourcepub fn fetch_all(cwd: Option<String>) -> Result<bool, Error>
pub fn fetch_all(cwd: Option<String>) -> Result<bool, Error>
Fetches all tracking information from origin.
Pulls in all tags from origin and forces local to be updated @param {string} [cwd=monorepo root]
pub fn get_diverged_commit(refer: String, cwd: Option<String>) -> Option<String>
sourcepub fn get_commits_since(
cwd: Option<String>,
since: Option<String>,
relative: Option<String>,
) -> Vec<Commit>
pub fn get_commits_since( cwd: Option<String>, since: Option<String>, relative: Option<String>, ) -> Vec<Commit>
Returns commits since a particular git SHA or tag. If the “since” parameter isn’t provided, all commits from the dawn of man are returned
Grabs the full list of all tags available on upstream or local
pub fn get_last_known_publish_tag_info_for_package( package_info: PackageInfo, cwd: Option<String>, ) -> Option<PublishTagInfo>
sourcepub fn get_last_known_publish_tag_info_for_all_packages(
package_info: Vec<PackageInfo>,
cwd: Option<String>,
) -> Vec<Option<PublishTagInfo>>
pub fn get_last_known_publish_tag_info_for_all_packages( package_info: Vec<PackageInfo>, cwd: Option<String>, ) -> Vec<Option<PublishTagInfo>>
Grabs the last known publish tag info for all packages in the monorepo
sourcepub fn git_all_files_changed_since_sha(
sha: String,
cwd: Option<String>,
) -> Vec<String>
pub fn git_all_files_changed_since_sha( sha: String, cwd: Option<String>, ) -> Vec<String>
Given a specific git sha, finds all files that have been modified since the sha and returns the absolute filepaths.
sourcepub fn get_all_files_changed_since_tag_infos(
package_info: Vec<PackageInfo>,
tag_info: Vec<PublishTagInfo>,
cwd: Option<String>,
) -> Vec<String>
pub fn get_all_files_changed_since_tag_infos( package_info: Vec<PackageInfo>, tag_info: Vec<PublishTagInfo>, cwd: Option<String>, ) -> Vec<String>
Given an input of parsed git tag infos, returns all the files that have changed since any of these git tags have occured, with duplicates removed.
sourcepub fn get_all_files_changed_since_branch(
package_info: Vec<PackageInfo>,
branch: String,
cwd: Option<String>,
) -> Vec<String>
pub fn get_all_files_changed_since_branch( package_info: Vec<PackageInfo>, branch: String, cwd: Option<String>, ) -> Vec<String>
Given an input of the “main” branch name, returns all the files that have changed since the current branch was created
pub fn get_conventional_for_package( package_info: PackageInfo, no_fetch_all: Option<bool>, cwd: Option<String>, conventional_options: Option<ConventionalPackageOptions>, ) -> ConventionalPackage
pub fn git_commit( message: String, body: Option<String>, footer: Option<String>, cwd: Option<String>, ) -> Result<bool, Error>
pub fn git_push(cwd: Option<String>) -> Result<bool, Error>
pub fn git_tag( tag: String, message: Option<String>, cwd: Option<String>, ) -> Result<bool, Error>
pub fn git_current_sha(cwd: Option<String>) -> String
pub fn git_workdir_unclean(cwd: Option<String>) -> bool
Auto Trait Implementations§
impl Freeze for Git
impl RefUnwindSafe for Git
impl Send for Git
impl Sync for Git
impl Unpin for Git
impl UnwindSafe for Git
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more