From 39bd6f726109942c6f77f59638f6763c9f00706c Mon Sep 17 00:00:00 2001 From: Jonathan Nieder Date: Sat, 26 Nov 2011 02:54:55 -0600 Subject: Allow checkout -B to update the current branch When on master, "git checkout -B master " is a more natural way to say "git reset --keep ", 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 Signed-off-by: Junio C Hamano --- branch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'branch.h') diff --git a/branch.h b/branch.h index 1285158dd..e125ff4ca 100644 --- a/branch.h +++ b/branch.h @@ -13,7 +13,8 @@ * branch for (if any). */ void create_branch(const char *head, const char *name, const char *start_name, - int force, int reflog, enum branch_track track); + int force, int reflog, + int clobber_head, enum branch_track track); /* * Validates that the requested branch may be created, returning the -- cgit v1.2.1