branch: say "Reset to" in reflog entries for 'git branch -f' operations
In 5f856dd (fix reflog entries for "git-branch"), it is mentioned that 'git branch -f' is intended to be equivalent to 'git reset'. Since we usually say "reset to <commit>" in the git-reset Documentation and elsewhere, it would make sense to say "Reset to" here as well, instead of "Reset from" previously. Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Tay Ray Chuan committed
Apr 9, 2010 at 20:38 UTC
936db184f0b51c07aba5e6a8f79352045f887632
1 file changed
+1
-1
builtin-branch.c
+1
-1
@@ -348,7 +348,7 @@ static void create_branch(const char *name, const char *start_name,
348
log_all_ref_updates = 1;
349
350
if (forcing)
351
- snprintf(msg, sizeof msg, "branch: Reset from %s",
351
+ snprintf(msg, sizeof msg, "branch: Reset to %s",
352
start_name);
353
else
354
snprintf(msg, sizeof msg, "branch: Created from %s",