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
|
force=1
|
||||||
;;
|
;;
|
||||||
-l)
|
-l)
|
||||||
cd "$GIT_DIR/refs" &&
|
|
||||||
case "$#" in
|
case "$#" in
|
||||||
1)
|
1)
|
||||||
find tags -type f -print ;;
|
set x . ;;
|
||||||
*)
|
|
||||||
shift
|
|
||||||
find tags -type f -print | grep "$@" ;;
|
|
||||||
esac
|
esac
|
||||||
|
shift
|
||||||
|
git rev-parse --symbolic --tags | sort | grep "$@"
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
-m)
|
-m)
|
||||||
|
|
Loading…
Reference in a new issue