pub struct CocoGitto { /* private fields */ }
Implementations§
source§impl CocoGitto
impl CocoGitto
pub fn create_monorepo_version(&mut self, opts: BumpOptions<'_>) -> Result<()>
pub fn create_all_package_version_auto( &mut self, opts: BumpOptions<'_> ) -> Result<()>
source§impl CocoGitto
impl CocoGitto
pub fn create_package_version( &mut self, opts: PackageBumpOptions<'_> ) -> Result<()>
source§impl CocoGitto
impl CocoGitto
pub fn create_version(&mut self, opts: BumpOptions<'_>) -> Result<()>
source§impl CocoGitto
impl CocoGitto
pub fn unwrap_or_stash_and_exit<T>(&mut self, tag: &Tag, result: Result<T>) -> T
sourcepub fn get_changelog_with_target_version(
&self,
pattern: &str,
tag: Tag
) -> Result<Release<'_>>
pub fn get_changelog_with_target_version( &self, pattern: &str, tag: Tag ) -> Result<Release<'_>>
The target version is not created yet when generating the changelog.
source§impl CocoGitto
impl CocoGitto
sourcepub fn get_changelog(
&self,
pattern: &str,
_with_child_releases: bool
) -> Result<Release<'_>>
pub fn get_changelog( &self, pattern: &str, _with_child_releases: bool ) -> Result<Release<'_>>
§Get a changelog between two oids
from
default value:latest tag or else first committo
default value:HEAD
or else first commit
pub fn get_changelog_at_tag( &self, tag: &str, template: Template ) -> Result<String>
source§impl CocoGitto
impl CocoGitto
pub fn conventional_commit(&self, opts: CommitOptions<'_>) -> Result<()>
source§impl CocoGitto
impl CocoGitto
pub fn install_all_hooks(&self, overwrite_existing_hooks: bool) -> Result<()>
pub fn install_git_hooks( &self, overwrite_existing_hooks: bool, hook_types: Vec<GitHookType> ) -> Result<()>
source§impl CocoGitto
impl CocoGitto
pub fn get_log(&self, filters: CommitFilters) -> Result<String>
pub fn get_repo_tag_name(&self) -> Option<String>
source§impl CocoGitto
impl CocoGitto
pub fn get() -> Result<Self>
pub fn get_committer(&self) -> Result<String, Git2Error>
sourcepub fn get_conventional_message(
commit_type: &str,
scope: Option<String>,
summary: String,
body: Option<String>,
footer: Option<String>,
is_breaking_change: bool
) -> Result<String>
pub fn get_conventional_message( commit_type: &str, scope: Option<String>, summary: String, body: Option<String>, footer: Option<String>, is_breaking_change: bool ) -> Result<String>
Tries to get a commit message conforming to the Conventional Commit spec.
If the commit message does not conform, None
is returned instead.
pub fn run_commit_hook(&self, hook: CommitHook) -> Result<(), Git2Error>
pub fn prepare_edit_message_path(&self) -> PathBuf
pub fn clear_cache(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CocoGitto
impl RefUnwindSafe for CocoGitto
impl Send for CocoGitto
impl !Sync for CocoGitto
impl Unpin for CocoGitto
impl UnwindSafe for CocoGitto
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
Mutably borrows from an owned value. Read more