aboutsummaryrefslogtreecommitdiff
path: root/git-sh-setup.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-08-31 23:47:01 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-08-31 23:47:01 -0400
commit88e21dc7461dca1ebc70d8579bcc9246364511ee (patch)
tree36bb1aa535ccec8ff6503fcebf8a6aee9bb801c5 /git-sh-setup.sh
parente340d7d3fa1c5b9a6e7af2e3ee3d526064e56bea (diff)
downloadgit-88e21dc7461dca1ebc70d8579bcc9246364511ee.tar.gz
git-88e21dc7461dca1ebc70d8579bcc9246364511ee.tar.xz
Teach bash about completing arguments for git-tag
Lately I have been doing a lot of calls to `git tag -d` and also to `git tag -v`. In both such cases being able to complete the names of existing tags saves the fingers some typing effort. We now look for the -d or -v option to git-tag in the bash completion support and offer up existing tag names as possible choices for these. When creating a new tag we now also offer bash completion support for the second argument to git-tag (the object to be tagged) as this can often be a specific existing branch name and is not necessarily the current HEAD. If the -f option is being used to recreate an existing tag we now also offer completion support on the existing tag names for the first argument of git-tag, helping to the user to reselect the prior tag name that they are trying to replace. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-sh-setup.sh')
0 files changed, 0 insertions, 0 deletions