]> arthur.barton.de Git - bup.git/commit
Add 'tag -f' support.
authorBen Kelly <bk@ancilla.ca>
Sat, 9 Nov 2013 19:21:04 +0000 (14:21 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 9 Nov 2013 20:45:04 +0000 (14:45 -0600)
commit7e6aaa38f37c37c99bef07158336dfac7e587407
treefc9f94e6bae7549796bdad72f261b90521c51f31
parent68a84b0f810b8b137b60f90ea393c2fd57cab4ab
Add 'tag -f' support.

Add a new flag, -f/--force, to bup tag. By analogy with 'git tag',
'bup tag -f foo commit' will create tag *foo* even if a tag with that
name already exists; the existing tag will be silently overwritten.

By analogy with 'rm -f', add 'bup tag -d -f'. All this does is
suppress the error when you attempt to 'bup tag -d' a tag that doesn't
exist; it is primarily for use in scripts that want to delete a tag
that may or may not exist in the first place without 'bup tag'
reporting a failure.

Signed-off-by: Ben Kelly <btk@google.com>
[rlb@defaultvalue.org: add missing "tag" and wrap text in bup-tag.md;
 put "-d" first in tag-cmd.py optspec line and bup-tag.md; adjust
 commit message.]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Documentation/bup-tag.md
cmd/tag-cmd.py
t/test.sh