@@ -22,10 +22,10 @@ pub struct Args {
22
22
#[ clap( long, short = 'c' , value_parser = crate :: shared:: AsBString ) ]
23
23
pub config : Vec < BString > ,
24
24
25
- #[ clap( long, short = 't' ) ]
26
25
/// The amount of threads to use for some operations.
27
26
///
28
27
/// If unset, or the value is 0, there is no limit and all logical cores can be used.
28
+ #[ clap( long, short = 't' ) ]
29
29
pub threads : Option < usize > ,
30
30
31
31
/// Display verbose messages and progress information
@@ -41,7 +41,7 @@ pub struct Args {
41
41
#[ clap( long, conflicts_with( "verbose" ) ) ]
42
42
pub no_verbose : bool ,
43
43
44
- /// Bring up a terminal user interface displaying progress visually
44
+ /// Bring up a terminal user interface displaying progress visually.
45
45
#[ cfg( feature = "prodash-render-tui" ) ]
46
46
#[ clap( long, conflicts_with( "verbose" ) ) ]
47
47
pub progress : bool ,
@@ -80,13 +80,13 @@ pub struct Args {
80
80
81
81
#[ derive( Debug , clap:: Subcommand ) ]
82
82
pub enum Subcommands {
83
- /// Subcommands for creating worktree archives
83
+ /// Subcommands for creating worktree archives.
84
84
#[ cfg( feature = "gitoxide-core-tools-archive" ) ]
85
85
Archive ( archive:: Platform ) ,
86
- /// Remove untracked files from the working tree
86
+ /// Remove untracked files from the working tree.
87
87
#[ cfg( feature = "gitoxide-core-tools-clean" ) ]
88
88
Clean ( clean:: Command ) ,
89
- /// Subcommands for interacting with commit-graph files
89
+ /// Subcommands for interacting with commit-graph files.
90
90
#[ clap( subcommand) ]
91
91
CommitGraph ( commitgraph:: Subcommands ) ,
92
92
/// Interact with the object database.
@@ -111,10 +111,10 @@ pub enum Subcommands {
111
111
/// A program just like `git credential`.
112
112
#[ clap( subcommand) ]
113
113
Credential ( credential:: Subcommands ) ,
114
- /// Fetch data from remotes and store it in the repository
114
+ /// Fetch data from remotes and store it in the repository.
115
115
#[ cfg( feature = "gitoxide-core-blocking-client" ) ]
116
116
Fetch ( fetch:: Platform ) ,
117
- /// Clone a repository into a new directory
117
+ /// Clone a repository into a new directory.
118
118
#[ cfg( feature = "gitoxide-core-blocking-client" ) ]
119
119
Clone ( clone:: Platform ) ,
120
120
/// Interact with the mailmap.
@@ -129,7 +129,7 @@ pub enum Subcommands {
129
129
/// Interact with the exclude files like .gitignore.
130
130
#[ clap( subcommand) ]
131
131
Exclude ( exclude:: Subcommands ) ,
132
- /// Interact with a worktree index like .git/index
132
+ /// Interact with a worktree index like .git/index.
133
133
#[ clap( subcommand) ]
134
134
Index ( index:: Subcommands ) ,
135
135
/// Interact with submodules.
@@ -140,7 +140,9 @@ pub enum Subcommands {
140
140
/// The object to print to stdout.
141
141
revspec : String ,
142
142
} ,
143
+ /// Check for changes in the repository, treating this as an error.
143
144
IsClean ,
145
+ /// Check for changes in the repository, treating their absence as an error.
144
146
IsChanged ,
145
147
/// Show which git configuration values are used or planned.
146
148
ConfigTree ,
@@ -150,14 +152,15 @@ pub enum Subcommands {
150
152
Corpus ( corpus:: Platform ) ,
151
153
MergeBase ( merge_base:: Command ) ,
152
154
Merge ( merge:: Platform ) ,
155
+ /// Print paths relevant to the Git installation.
153
156
Env ,
154
157
Diff ( diff:: Platform ) ,
155
158
Log ( log:: Platform ) ,
156
159
Worktree ( worktree:: Platform ) ,
157
- /// Subcommands that need no git repository to run.
160
+ /// Subcommands that need no Git repository to run.
158
161
#[ clap( subcommand) ]
159
162
Free ( free:: Subcommands ) ,
160
- /// Blame lines in a file
163
+ /// Blame lines in a file.
161
164
Blame {
162
165
/// Print additional statistics to help understanding performance.
163
166
#[ clap( long, short = 's' ) ]
@@ -271,7 +274,7 @@ pub mod status {
271
274
}
272
275
273
276
#[ derive( Debug , clap:: Parser ) ]
274
- #[ command( about = "compute repository status similar to `git status`" ) ]
277
+ #[ command( about = "Compute repository status similar to `git status`" ) ]
275
278
pub struct Platform {
276
279
/// The way status data is displayed.
277
280
#[ clap( long, short = 'f' ) ]
@@ -318,7 +321,7 @@ pub mod worktree {
318
321
319
322
#[ derive( Debug , clap:: Subcommand ) ]
320
323
pub enum SubCommands {
321
- /// List all worktrees, along with some accompanying information
324
+ /// List all worktrees, along with some accompanying information.
322
325
List ,
323
326
}
324
327
}
@@ -328,7 +331,7 @@ pub mod corpus {
328
331
use std:: path:: PathBuf ;
329
332
330
333
#[ derive( Debug , clap:: Parser ) ]
331
- #[ command( about = "run algorithms on a corpus of git repositories and store their results for later analysis" ) ]
334
+ #[ command( about = "Run algorithms on a corpus of git repositories and store their results for later analysis" ) ]
332
335
pub struct Platform {
333
336
/// The path to the database to read and write depending on the sub-command.
334
337
#[ arg( long, default_value = "corpus.db" ) ]
@@ -441,7 +444,7 @@ pub mod merge {
441
444
}
442
445
443
446
#[ derive( Debug , clap:: Parser ) ]
444
- #[ command( about = "perform merges of various kinds" ) ]
447
+ #[ command( about = "Perform merges of various kinds" ) ]
445
448
pub struct Platform {
446
449
#[ clap( subcommand) ]
447
450
pub cmd : SubCommands ,
@@ -499,7 +502,7 @@ pub mod merge {
499
502
pub mod diff {
500
503
use gix:: bstr:: BString ;
501
504
502
- /// Print all changes between two objects
505
+ /// Print all changes between two objects.
503
506
#[ derive( Debug , clap:: Parser ) ]
504
507
pub struct Platform {
505
508
#[ clap( subcommand) ]
@@ -532,7 +535,7 @@ pub mod diff {
532
535
pub mod log {
533
536
use gix:: bstr:: BString ;
534
537
535
- /// List all commits in a repository, optionally limited to those that change a given path
538
+ /// List all commits in a repository, optionally limited to those that change a given path.
536
539
#[ derive( Debug , clap:: Parser ) ]
537
540
pub struct Platform {
538
541
/// The git path specification to show a log for.
@@ -544,7 +547,7 @@ pub mod log {
544
547
pub mod config {
545
548
use gix:: bstr:: BString ;
546
549
547
- /// Print all entries in a configuration file or access other sub-commands
550
+ /// Print all entries in a configuration file or access other sub-commands.
548
551
#[ derive( Debug , clap:: Parser ) ]
549
552
#[ clap( subcommand_required( false ) ) ]
550
553
pub struct Platform {
@@ -942,7 +945,7 @@ pub mod credential {
942
945
pub mod commitgraph {
943
946
#[ derive( Debug , clap:: Subcommand ) ]
944
947
pub enum Subcommands {
945
- /// Verify the integrity of a commit graph file
948
+ /// Verify the integrity of a commit graph file.
946
949
Verify {
947
950
/// output statistical information about the graph.
948
951
#[ clap( long, short = 's' ) ]
@@ -975,7 +978,7 @@ pub mod revision {
975
978
Git ,
976
979
/// The version that would be checked out into the worktree, including filters.
977
980
Worktree ,
978
- /// The version that would be diffed (Worktree + Text-Conversion)
981
+ /// The version that would be diffed (Worktree + Text-Conversion).
979
982
Diff ,
980
983
/// The version that would be diffed if there is a text-conversion, or the one stored in Git otherwise.
981
984
DiffOrGit ,
@@ -1037,10 +1040,10 @@ pub mod attributes {
1037
1040
1038
1041
#[ derive( Debug , clap:: Subcommand ) ]
1039
1042
pub enum Subcommands {
1040
- /// Run `git check-attr` and `git check-ignore` on all files of the index or all files passed via stdin and validate that
1041
- /// we get the same outcome when computing attributes.
1043
+ /// Run `git check-attr` and `git check-ignore` on all files of the index or all files
1044
+ /// passed via stdin and validate that we get the same outcome when computing attributes.
1042
1045
ValidateBaseline {
1043
- /// Print various statistics to stderr
1046
+ /// Print various statistics to stderr.
1044
1047
#[ clap( long, short = 's' ) ]
1045
1048
statistics : bool ,
1046
1049
/// Don't validated excludes as obtaining them with `check-ignore` can be very slow.
@@ -1049,10 +1052,10 @@ pub mod attributes {
1049
1052
} ,
1050
1053
/// List all attributes of the given path-specs and display the result similar to `git check-attr`.
1051
1054
Query {
1052
- /// Print various statistics to stderr
1055
+ /// Print various statistics to stderr.
1053
1056
#[ clap( long, short = 's' ) ]
1054
1057
statistics : bool ,
1055
- /// The git path specifications to list attributes for, or unset to read from stdin one per line.
1058
+ /// The Git path specifications to list attributes for, or unset to read from stdin one per line.
1056
1059
#[ clap( value_parser = CheckPathSpec ) ]
1057
1060
pathspec : Vec < BString > ,
1058
1061
} ,
@@ -1069,7 +1072,7 @@ pub mod exclude {
1069
1072
pub enum Subcommands {
1070
1073
/// Check if path-specs are excluded and print the result similar to `git check-ignore`.
1071
1074
Query {
1072
- /// Print various statistics to stderr
1075
+ /// Print various statistics to stderr.
1073
1076
#[ clap( long, short = 's' ) ]
1074
1077
statistics : bool ,
1075
1078
/// Show actual ignore patterns instead of un-excluding an entry.
@@ -1108,7 +1111,7 @@ pub mod index {
1108
1111
1109
1112
#[ derive( Debug , clap:: Subcommand ) ]
1110
1113
pub enum Subcommands {
1111
- /// Print all entries to standard output
1114
+ /// Print all entries to standard output.
1112
1115
Entries {
1113
1116
/// How to output index entries.
1114
1117
#[ clap( long, short = 'f' , default_value = "simple" , value_enum) ]
@@ -1124,7 +1127,7 @@ pub mod index {
1124
1127
/// Display submodule entries as well if their repository exists.
1125
1128
#[ clap( long, short = 'r' ) ]
1126
1129
recurse_submodules : bool ,
1127
- /// Print various statistics to stderr
1130
+ /// Print various statistics to stderr.
1128
1131
#[ clap( long, short = 's' ) ]
1129
1132
statistics : bool ,
1130
1133
/// The git path specifications to match entries to print.
@@ -1138,8 +1141,10 @@ pub mod index {
1138
1141
#[ clap( long, short = 'f' ) ]
1139
1142
force : bool ,
1140
1143
/// Path to the index file to be written.
1141
- /// If none is given it will be kept in memory only as a way to measure performance. One day we will probably write the index
1142
- /// back by default, but that requires us to write more of the index to work.
1144
+ ///
1145
+ /// If none is given it will be kept in memory only as a way to measure performance.
1146
+ /// One day we will probably write the index back by default, but that requires us to
1147
+ /// write more of the index to work.
1143
1148
#[ clap( long, short = 'i' ) ]
1144
1149
index_output_path : Option < PathBuf > ,
1145
1150
/// Don't write the trailing hash for a performance gain.
@@ -1160,7 +1165,7 @@ pub mod submodule {
1160
1165
1161
1166
#[ derive( Debug , clap:: Subcommand ) ]
1162
1167
pub enum Subcommands {
1163
- /// Print all direct submodules to standard output
1168
+ /// Print all direct submodules to standard output.
1164
1169
List {
1165
1170
/// Set the suffix to append if the repository is dirty (not counting untracked files).
1166
1171
#[ clap( short = 'd' , long) ]
0 commit comments