mirror of
https://github.com/git/git.git
synced 2024-11-29 13:06:07 +08:00
Merge branch 'kb/co-orphan-suggestion-short-sha1'
Update the informational message when "git checkout" leaves the detached head state. * kb/co-orphan-suggestion-short-sha1: checkout: abbreviate hash in suggest_reattach
This commit is contained in:
commit
bd1184c6de
@ -729,7 +729,7 @@ static void suggest_reattach(struct commit *commit, struct rev_info *revs)
|
||||
"If you want to keep them by creating a new branch, "
|
||||
"this may be a good time\nto do so with:\n\n"
|
||||
" git branch new_branch_name %s\n\n"),
|
||||
sha1_to_hex(commit->object.sha1));
|
||||
find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user