Skip to content

Commit bd1184c

Browse files
committed
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
2 parents cd797c7 + d6e1466 commit bd1184c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/checkout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ static void suggest_reattach(struct commit *commit, struct rev_info *revs)
729729
"If you want to keep them by creating a new branch, "
730730
"this may be a good time\nto do so with:\n\n"
731731
" git branch new_branch_name %s\n\n"),
732-
sha1_to_hex(commit->object.sha1));
732+
find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV));
733733
}
734734

735735
/*

0 commit comments

Comments
 (0)