Merge branch 'rc/maint-reflog-msg-for-forced-branch'
* rc/maint-reflog-msg-for-forced-branch: branch: say "Reset to" in reflog entries for 'git branch -f' operations Conflicts: builtin-branch.c
This commit is contained in:
2
branch.c
2
branch.c
@ -198,7 +198,7 @@ void create_branch(const char *head,
|
|||||||
log_all_ref_updates = 1;
|
log_all_ref_updates = 1;
|
||||||
|
|
||||||
if (forcing)
|
if (forcing)
|
||||||
snprintf(msg, sizeof msg, "branch: Reset from %s",
|
snprintf(msg, sizeof msg, "branch: Reset to %s",
|
||||||
start_name);
|
start_name);
|
||||||
else if (!dont_change_ref)
|
else if (!dont_change_ref)
|
||||||
snprintf(msg, sizeof msg, "branch: Created from %s",
|
snprintf(msg, sizeof msg, "branch: Created from %s",
|
||||||
|
Reference in New Issue
Block a user