Skip to content

Commit

Permalink
rename 'gix commitgraph' back to 'gix commit-graph'
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jan 1, 2022
1 parent bcde935 commit d6a72e7
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ stress: ## Run various algorithms on big repositories
.PHONY: stress-commitgraph
stress-commitgraph: release-lean $(commit_graphs)
set -x; for path in $(wordlist 2, 999, $^); do \
time ./target/release/gix --verbose commit-graph-verify $$path; \
time ./target/release/gix --verbose commit-graph verify $$path; \
done

.PHONY: bench-git-config
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ Please see _'Development Status'_ for a listing of all crates and their capabili
* **index**
* [x] [create](https://asciinema.org/a/352941) - create an index file by streaming a pack file as done during clone
* [x] support for thin packs (as needed for fetch/pull)
* **commitgraph**
* [x] **verify** - assure that a commitgraph is consistent
* **commit-graph**
* [x] **verify** - assure that a commit-graph is consistent
* **remote**
* [ref-list](https://asciinema.org/a/359320) - list all (or given) references from a remote at the given URL

Expand Down
2 changes: 1 addition & 1 deletion src/plumbing/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ pub fn main() -> Result<()> {
},
),
},
Subcommands::Commitgraph(subcommands) => match subcommands {
Subcommands::CommitGraph(subcommands) => match subcommands {
commitgraph::Subcommands::Verify { path, statistics } => prepare_and_run(
"commitgraph-verify",
verbose,
Expand Down
4 changes: 2 additions & 2 deletions src/plumbing/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ pub enum Subcommands {
#[clap(subcommand)]
#[cfg(any(feature = "gitoxide-core-async-client", feature = "gitoxide-core-blocking-client"))]
Remote(remote::Subcommands),
/// Subcommands for interacting with commitgraphs
/// Subcommands for interacting with commit-graphs
#[clap(subcommand)]
Commitgraph(commitgraph::Subcommands),
CommitGraph(commitgraph::Subcommands),
}

///
Expand Down
12 changes: 6 additions & 6 deletions tests/journey/gix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,10 @@ title "gix remote"



title "gix commitgraph"
(when "running 'commitgraph'"
snapshot="$snapshot/commitgraph"
title "gix commitgraph verify"
title "gix commit-graph"
(when "running 'commit-graph'"
snapshot="$snapshot/commit-graph"
title "gix commit-graph verify"
(with "the 'verify' sub-command"
snapshot="$snapshot/verify"

Expand All @@ -592,14 +592,14 @@ title "gix commitgraph"
(with "statistics"
it "generates the correct output" && {
WITH_SNAPSHOT="$snapshot/statistics-success" \
expect_run $SUCCESSFULLY "$exe_plumbing" commitgraph verify -s .git/objects/info
expect_run $SUCCESSFULLY "$exe_plumbing" commit-graph verify -s .git/objects/info
}
)
if test "$kind" = "max"; then
(with "statistics --format json"
it "generates the correct output" && {
WITH_SNAPSHOT="$snapshot/statistics-json-success" \
expect_run $SUCCESSFULLY "$exe_plumbing" --format json commitgraph verify -s .git/objects/info
expect_run $SUCCESSFULLY "$exe_plumbing" --format json commit-graph verify -s .git/objects/info
}
)
fi
Expand Down

0 comments on commit d6a72e7

Please sign in to comment.