author | Lars Hjemli <hjemli@gmail.com> | |
Tue, 28 Nov 2006 14:47:40 +0000 (15:47 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 6 Dec 2006 07:50:57 +0000 (23:50 -0800) | ||
commit | c976d415e5352886f0650f8e2edba81866c38587 | |
tree | 49731f2430197df384f3259a899a0bba8156e284 | tree | snapshot |
parent | 8ebe185bbf3f1f4f59bcc61e3d1849a76f6af983 | commit | diff |
git-branch: add options and tests for branch renaming
Extend git-branch with the following options:
git-branch -m|-M [<oldbranch>] newbranch
The -M variation is required to force renaming over an exsisting
branchname.
This also indroduces $GIT_DIR/RENAME_REF which is a "metabranch"
used when renaming branches. It will always hold the original sha1
for the latest renamed branch.
Additionally, if $GIT_DIR/logs/RENAME_REF exists, all branch rename
events are logged there.
Finally, some testcases are added to verify the new options.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Extend git-branch with the following options:
git-branch -m|-M [<oldbranch>] newbranch
The -M variation is required to force renaming over an exsisting
branchname.
This also indroduces $GIT_DIR/RENAME_REF which is a "metabranch"
used when renaming branches. It will always hold the original sha1
for the latest renamed branch.
Additionally, if $GIT_DIR/logs/RENAME_REF exists, all branch rename
events are logged there.
Finally, some testcases are added to verify the new options.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-branch.txt | diff | blob | history | |
builtin-branch.c | diff | blob | history | |
refs.c | diff | blob | history | |
refs.h | diff | blob | history | |
t/t3200-branch.sh | diff | blob | history |