From: Tay Ray Chuan Date: Fri, 9 Apr 2010 12:38:18 +0000 (+0800) Subject: branch: say "Reset to" in reflog entries for 'git branch -f' operations X-Git-Tag: v1.7.1-rc1~4^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=936db184f0b51c07aba5e6a8f79352045f887632;p=git.git 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 " 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin-branch.c b/builtin-branch.c index eaff54ec5..f9a821e85 100644 --- a/builtin-branch.c +++ b/builtin-branch.c @@ -348,7 +348,7 @@ static void create_branch(const char *name, const char *start_name, log_all_ref_updates = 1; if (forcing) - snprintf(msg, sizeof msg, "branch: Reset from %s", + snprintf(msg, sizeof msg, "branch: Reset to %s", start_name); else snprintf(msg, sizeof msg, "branch: Created from %s",