Skip to content

Commit

Permalink
add mechanism to return version number (#117)
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
  • Loading branch information
LucasLarson committed Oct 23, 2022
1 parent c4b3cab commit 9dcd1a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/git-unstage
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ gunstage() {
command git status
;;

-V | --version)
command git --git-dir="$(
command -v -- git-unstage |
command sed -e 's/\(.*\)bin\/git-unstage/\1.git/'
)" describe --tags
exit 0
;;

*)
# run the same command against each argument, if any
# otherwise use `.` for everything in the current directory and below
Expand Down

0 comments on commit 9dcd1a0

Please sign in to comment.