Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
cat-file: refactor --batch option parsing
[gitweb.git]
/
builtin
/
checkout.c
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index 4ed1ee7e25930aece59b7986fda9523a58c74dd6..81b4419da51f3211129833a472048d897385bca4 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-732,7
+732,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
));
}
/*