author | Junio C Hamano <junkio@cox.net> | |
Sat, 23 Jul 2005 02:08:47 +0000 (19:08 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Sat, 23 Jul 2005 03:34:16 +0000 (20:34 -0700) | ||
commit | a38e727925bfad369fc98165f6ff161193397f28 | |
tree | b24f30818110c5370d58add1200601969fca88cb | tree | snapshot |
parent | 5bb2c65aba9161ee77c42002009634e757005b4f | commit | diff |
[PATCH] git-branch: avoid getting confused by empty or nonexisting branches.
When not specifying the start point explicitly, we ended up
emitting ^0 in addition to the default HEAD. Be careful to see
if we have "$2" before finding out which commit to base the new
branch on.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
When not specifying the start point explicitly, we ended up
emitting ^0 in addition to the default HEAD. Be careful to see
if we have "$2" before finding out which commit to base the new
branch on.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-branch-script | diff | blob | history |