Skip to content

Commit 936db18

Browse files
rctaygitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5f856dd commit 936db18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-branch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ static void create_branch(const char *name, const char *start_name,
348348
log_all_ref_updates = 1;
349349

350350
if (forcing)
351-
snprintf(msg, sizeof msg, "branch: Reset from %s",
351+
snprintf(msg, sizeof msg, "branch: Reset to %s",
352352
start_name);
353353
else
354354
snprintf(msg, sizeof msg, "branch: Created from %s",

0 commit comments

Comments
 (0)