You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Cargo.toml
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@ version = "0.2.0"
8
8
edition = "2024"
9
9
rust-version = "1.87"
10
10
description = "A headache-free submodule management tool, built on top of gitoxide. Manage sparse checkouts, submodule updates, and adding/removing submodules with ease."
11
-
license = "MIT"# Plain MIT license: plainlicense.org/licenses/permissive/mit/
Copy file name to clipboardExpand all lines: sample_config/submod.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ ignore = "dirty" # Override default ignore setting for all submodules
59
59
#
60
60
# ## `shallow`
61
61
#
62
-
# If `true`, performs a shallow clone of the submodule, which means it only fetchest the most recent commit. Defaults to `false`. This is useful for large repositories where you only need the latest commit.
62
+
# If `true`, performs a shallow clone of the submodule, which means it only fetches the most recent commit. Defaults to `false`. This is useful for large repositories where you only need the latest commit.
Copy file name to clipboardExpand all lines: src/commands.rs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -101,8 +101,8 @@ pub enum Commands {
101
101
)]
102
102
branch:Option<String>,
103
103
104
-
#[arg(short = 'i', long = "ignore",default_value = "unspecified",help = "What changes in the submodule git should ignore.")]
105
-
ignore:Ignore,
104
+
#[arg(short = 'i', long = "ignore", help = "What changes in the submodule git should ignore.")]
105
+
ignore:Option<Ignore>,
106
106
107
107
#[arg(
108
108
short = 'x',
@@ -112,11 +112,11 @@ pub enum Commands {
112
112
)]
113
113
sparse_paths:Option<Vec<String>>,
114
114
115
-
#[arg(short = 'f', long = "fetch",default_value = "unspecified",help = "Sets the recursive fetch behavior for the submodule (like, if we should fetch its submodules).")]
116
-
fetch:FetchRecurse,
115
+
#[arg(short = 'f', long = "fetch", help = "Sets the recursive fetch behavior for the submodule (like, if we should fetch its submodules).")]
116
+
fetch:Option<FetchRecurse>,
117
117
118
-
#[arg(short = 'u', long = "update",default_value = "unspecified",help = "How git should update the submodule when you run `git submodule update`.")]
119
-
update:Update,
118
+
#[arg(short = 'u', long = "update", help = "How git should update the submodule when you run `git submodule update`.")]
119
+
update:Option<Update>,
120
120
121
121
// TODO: Implement this arg
122
122
#[arg(short = 's', long = "shallow", default_value = "false", action = clap::ArgAction::SetTrue, default_missing_value = "true", help = "If given, sets the submodule as a shallow clone. It will only fetch the last commit of the branch, not the full history.")]
Copy file name to clipboardExpand all lines: src/utilities.rs
+12-15Lines changed: 12 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,10 @@
3
3
// SPDX-License-Identifier: LicenseRef-PlainMIT OR MIT
4
4
//! Utility functions for working with `Gitoxide` APIs commonly used across the codebase.
5
5
6
-
use anyhow::Ok;
6
+
use anyhow::Result;
7
7
use git2::RepositoryasGit2Repository;
8
8
use gix::open::Options;
9
9
use std::path::PathBuf;
10
-
use std::result::Result;
11
10
12
11
/// Get the current repository using git2, with an optional provided repository. If no repository is provided, it will attempt to discover one in the current directory.
0 commit comments