summaryrefslogtreecommitdiffstats
path: root/vendor/gix/src/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix/src/init.rs')
-rw-r--r--vendor/gix/src/init.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/gix/src/init.rs b/vendor/gix/src/init.rs
index d04de0806..21c2debd8 100644
--- a/vendor/gix/src/init.rs
+++ b/vendor/gix/src/init.rs
@@ -1,6 +1,7 @@
#![allow(clippy::result_large_err)]
use std::{borrow::Cow, convert::TryInto, path::Path};
+use gix_macros::momo;
use gix_ref::{
store::WriteReflog,
transaction::{PreviousValue, RefEdit},
@@ -29,7 +30,7 @@ pub enum Error {
#[error("Invalid default branch name: {name:?}")]
InvalidBranchName {
name: BString,
- source: gix_validate::refname::Error,
+ source: gix_validate::reference::name::Error,
},
#[error("Could not edit HEAD reference with new default name")]
EditHeadForDefaultBranch(#[from] crate::reference::edit::Error),
@@ -40,6 +41,7 @@ impl ThreadSafeRepository {
///
/// Fails without action if there is already a `.git` repository inside of `directory`, but
/// won't mind if the `directory` otherwise is non-empty.
+ #[momo]
pub fn init(
directory: impl AsRef<Path>,
kind: crate::create::Kind,
@@ -56,6 +58,7 @@ impl ThreadSafeRepository {
///
/// Instead of naming the default branch `master`, we name it `main` unless configured explicitly using the `init.defaultBranch`
/// configuration key.
+ #[momo]
pub fn init_opts(
directory: impl AsRef<Path>,
kind: crate::create::Kind,