Skip to content

Commit c512b03

Browse files
committed
Merge branch 'rc/maint-reflog-msg-for-forced-branch' into maint
* rc/maint-reflog-msg-for-forced-branch: branch: say "Reset to" in reflog entries for 'git branch -f' operations
2 parents d8c416b + 936db18 commit c512b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

branch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void create_branch(const char *head,
198198
log_all_ref_updates = 1;
199199

200200
if (forcing)
201-
snprintf(msg, sizeof msg, "branch: Reset from %s",
201+
snprintf(msg, sizeof msg, "branch: Reset to %s",
202202
start_name);
203203
else if (!dont_change_ref)
204204
snprintf(msg, sizeof msg, "branch: Created from %s",

0 commit comments

Comments
 (0)