author | Junio C Hamano <junkio@cox.net> | |
Wed, 27 Sep 2006 08:58:57 +0000 (01:58 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 27 Sep 2006 09:01:42 +0000 (02:01 -0700) | ||
commit | ac5409e420e5fdd7c4a381f873ffcedfb83d7117 | |
tree | eae6bec434639c43b324005b5c0b88bfe5889834 | tree | snapshot |
parent | 4431fcc4b134ae501e3e57dc568ae4f031e57898 | commit | diff |
update-ref: -d flag and ref creation safety.
This adds -d flag to update-ref to allow safe deletion of ref.
Before deleting it, the command checks if the given <oldvalue>
still matches the value the caller thought the ref contained.
Similarly, it also accepts 0{40} or an empty string as <oldvalue>
to allow safe creation of a new ref.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This adds -d flag to update-ref to allow safe deletion of ref.
Before deleting it, the command checks if the given <oldvalue>
still matches the value the caller thought the ref contained.
Similarly, it also accepts 0{40} or an empty string as <oldvalue>
to allow safe creation of a new ref.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-update-ref.txt | diff | blob | history | |
builtin-update-ref.c | diff | blob | history | |
cache.h | diff | blob | history | |
refs.c | diff | blob | history |