Skip to content

Commit b42de59

Browse files
committed
feat(show): allow unescaped negative patch offsets
This allows, for example, `stg show -1` to show the patch preceding the topmost patch. Previously, a negative relative patch offset would have had to been escaped, e.g. `stg show '\-1'` or `stg show \\-1`.
1 parent 562b616 commit b42de59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/show.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ fn make() -> clap::Command {
5252
)
5353
.value_name("patch-or-rev")
5454
.num_args(1..)
55+
.allow_negative_numbers(true)
5556
.value_parser(clap::value_parser!(RangeRevisionSpec))
5657
.conflicts_with_all(["applied", "unapplied", "hidden"]),
5758
)

0 commit comments

Comments
 (0)