Skip to content

Commit

Permalink
Merge branch 'kb/co-orphan-suggestion-short-sha1'
Browse files Browse the repository at this point in the history
Update the informational message when "git checkout" leaves the
detached head state.

* kb/co-orphan-suggestion-short-sha1:
  checkout: abbreviate hash in suggest_reattach
  • Loading branch information
Junio C Hamano committed Apr 18, 2013
2 parents cd797c7 + d6e1466 commit bd1184c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/*
Expand Down

0 comments on commit bd1184c

Please sign in to comment.