Skip to content

Commit 22d8a47

Browse files
committed
Spelling: "committish"
1 parent dd89a9f commit 22d8a47

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@
494494
- All stgit commands now use "new" git library infrastructure
495495

496496
### Fixed
497-
- `stg branch --create` inherits remote correctly from parent commitish
497+
- `stg branch --create` inherits remote correctly from parent committish
498498
- Patch names are checked earlier to avoid inconsistent stack states
499499
- Improved commit data parsing and handling of non-UTF8 encodings
500500
- Repair git error messages when checking stgit version from outside a

src/cmd/uncommit.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn make() -> clap::Command<'static> {
5353
.override_usage(
5454
"stg uncommit <patchname-1> [<patchname-2> ...]\n\
5555
stg uncommit -n number [<patchname-prefix>]\n\
56-
stg uncommit -t <commitish> [-x]",
56+
stg uncommit -t <committish> [-x]",
5757
)
5858
.arg(
5959
Arg::new("patchname")
@@ -76,7 +76,7 @@ fn make() -> clap::Command<'static> {
7676
.long("to")
7777
.short('t')
7878
.help("Uncommit to the specified committish")
79-
.value_name("commitish")
79+
.value_name("committish")
8080
.conflicts_with("patchname"),
8181
)
8282
.arg(
@@ -96,15 +96,15 @@ fn run(matches: &ArgMatches) -> Result<()> {
9696

9797
let patchname_len_limit = PatchName::get_length_limit(&config);
9898

99-
let (commits, patchnames) = if let Some(commitish) = matches.get_one::<String>("to") {
99+
let (commits, patchnames) = if let Some(committish) = matches.get_one::<String>("to") {
100100
let target_object = repo
101-
.revparse_single(commitish)
102-
.map_err(|_| anyhow!("Invalid commitish `{commitish}`"))?;
101+
.revparse_single(committish)
102+
.map_err(|_| anyhow!("Invalid committish `{committish}`"))?;
103103

104104
let mut target_commit = target_object
105105
.peel(git2::ObjectType::Commit).ok()
106106
.and_then(|c| c.into_commit().ok())
107-
.ok_or_else(|| anyhow!("Target `{commitish}` cannot be evaluated as a commit"))?;
107+
.ok_or_else(|| anyhow!("Target `{committish}` cannot be evaluated as a commit"))?;
108108

109109
let bases = repo.merge_bases(target_commit.id(), stack.base().id())?;
110110

t/t1300-uncommit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ test_expect_success \
4242
'Invalid --to and --number arguments' \
4343
'
4444
general_error stg uncommit --to HEAD^ --number 1 2>err &&
45-
grep -e "error: The argument .--to <commitish>. cannot be used with .--number <number>." err
45+
grep -e "error: The argument .--to <committish>. cannot be used with .--number <number>." err
4646
'
4747

4848
test_expect_success \
4949
'Invalid --to with patch args' \
5050
'
5151
general_error stg uncommit --to HEAD^ p0 2>err &&
52-
grep -e "error: The argument .--to <commitish>. cannot be used with .<patchname>\.\.\.." err
52+
grep -e "error: The argument .--to <committish>. cannot be used with .<patchname>\.\.\.." err
5353
'
5454

5555
test_expect_success \

0 commit comments

Comments
 (0)