Skip to content

Commit

Permalink
branch: say "Reset to" in reflog entries for 'git branch -f' operations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tay Ray Chuan authored and Junio C Hamano committed Apr 10, 2010
1 parent 5f856dd commit 936db18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 936db18

Please sign in to comment.