author | Jonathan Nieder <jrnieder@gmail.com> | |
Sat, 26 Nov 2011 08:54:55 +0000 (02:54 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 28 Nov 2011 19:40:46 +0000 (11:40 -0800) | ||
commit | 39bd6f726109942c6f77f59638f6763c9f00706c | |
tree | 903f5b34643ab93fa0a164a3962c70461b20406b | tree | snapshot |
parent | 3f59481e338c2d3167b9654a4289a9d1201f7944 | commit | diff |
Allow checkout -B <current-branch> to update the current branch
When on master, "git checkout -B master <commit>" is a more natural way to
say "git reset --keep <commit>", which was originally invented for the
exact purpose of moving to the named commit while keeping the local changes
around.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When on master, "git checkout -B master <commit>" is a more natural way to
say "git reset --keep <commit>", which was originally invented for the
exact purpose of moving to the named commit while keeping the local changes
around.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c | diff | blob | history | |
branch.h | diff | blob | history | |
builtin/branch.c | diff | blob | history | |
builtin/checkout.c | diff | blob | history | |
t/t2018-checkout-branch.sh | diff | blob | history |