提交 936db184 编写于 作者: T Tay Ray Chuan 提交者: Junio C Hamano

branch: say "Reset to" in reflog entries for 'git branch -f' operations

In 5f856dd4 (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: NTay Ray Chuan <rctay89@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 5f856dd4
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册