aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2010-04-09 20:38:18 +0800
committerJunio C Hamano <gitster@pobox.com>2010-04-09 20:40:54 -0700
commit936db184f0b51c07aba5e6a8f79352045f887632 (patch)
tree78f22a2fcad831493f94ad9cd83c60d4e539b19d
parent5f856dd47dacb30fb9f605b4b7e1fa577ada7d26 (diff)
downloadgit-936db184f0b51c07aba5e6a8f79352045f887632.tar.gz
git-936db184f0b51c07aba5e6a8f79352045f887632.tar.xz
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>
-rw-r--r--builtin-branch.c2
1 files changed, 1 insertions, 1 deletions
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",