mirror of
https://github.com/git/git.git
synced 2024-11-17 22:44:49 +01:00
Merge branch 'se/tag' into next
* se/tag: Strip useless "tags/" prefix from git-tag -l output
This commit is contained in:
commit
cee1b9549b
1 changed files with 3 additions and 5 deletions
|
@ -25,14 +25,12 @@ do
|
|||
force=1
|
||||
;;
|
||||
-l)
|
||||
cd "$GIT_DIR/refs" &&
|
||||
case "$#" in
|
||||
1)
|
||||
find tags -type f -print ;;
|
||||
*)
|
||||
shift
|
||||
find tags -type f -print | grep "$@" ;;
|
||||
set x . ;;
|
||||
esac
|
||||
shift
|
||||
git rev-parse --symbolic --tags | sort | grep "$@"
|
||||
exit $?
|
||||
;;
|
||||
-m)
|
||||
|
|
Loading…
Reference in a new issue