Clean up find_unique_abbrev() callers

Now find_unique_abbrev() never returns NULL, there is no need for callers
to prepare for seeing NULL and fall back to giving the full 40-hexdigits.

While we are at it, drop "..." in the "git reset" output that reports the
location of the new HEAD, between the abbreviated commit object name and
the one line commit summary.  Because we are always showing the HEAD
(which cannot be missing!), we never had a case where we show the full 40
hexdigits that is not followed by three dots, and these three dots were
stealing 3 columns from the precious horizontal screen real estate out of
80 that can better be used for the one line commit summary.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
3 files changed
tree: 176701656ed7bc90a175f31b944b399c3b7ebdf8
  1. arm/
  2. compat/
  3. contrib/
  4. Documentation/
  5. git-gui/
  6. gitk-git/
  7. gitweb/
  8. mozilla-sha1/
  9. perl/
  10. ppc/
  11. t/
  12. templates/
  13. xdiff/
  14. .gitattributes
  15. .gitignore
  16. .mailmap
  17. alias.c
  18. alloc.c
  19. archive-tar.c
  20. archive-zip.c
  21. archive.c
  22. archive.h
  23. attr.c
  24. attr.h
  25. base85.c
  26. blob.c
  27. blob.h
  28. branch.c
  29. branch.h
  30. builtin-add.c
  31. builtin-annotate.c
  32. builtin-apply.c
  33. builtin-archive.c
  34. builtin-blame.c
  35. builtin-branch.c
  36. builtin-bundle.c
  37. builtin-cat-file.c
  38. builtin-check-attr.c
  39. builtin-check-ref-format.c
  40. builtin-checkout-index.c
  41. builtin-checkout.c
  42. builtin-clean.c
  43. builtin-commit-tree.c
  44. builtin-commit.c
  45. builtin-config.c
  46. builtin-count-objects.c
  47. builtin-describe.c
  48. builtin-diff-files.c
  49. builtin-diff-index.c
  50. builtin-diff-tree.c
  51. builtin-diff.c
  52. builtin-fast-export.c
  53. builtin-fetch--tool.c
  54. builtin-fetch-pack.c
  55. builtin-fetch.c
  56. builtin-fmt-merge-msg.c
  57. builtin-for-each-ref.c
  58. builtin-fsck.c
  59. builtin-gc.c
  60. builtin-grep.c
  61. builtin-http-fetch.c
  62. builtin-init-db.c
  63. builtin-log.c
  64. builtin-ls-files.c
  65. builtin-ls-remote.c
  66. builtin-ls-tree.c
  67. builtin-mailinfo.c
  68. builtin-mailsplit.c
  69. builtin-merge-base.c
  70. builtin-merge-file.c
  71. builtin-merge-ours.c
  72. builtin-merge-recursive.c
  73. builtin-mv.c
  74. builtin-name-rev.c
  75. builtin-pack-objects.c
  76. builtin-pack-refs.c
  77. builtin-prune-packed.c
  78. builtin-prune.c
  79. builtin-push.c
  80. builtin-read-tree.c
  81. builtin-reflog.c
  82. builtin-rerere.c
  83. builtin-reset.c
  84. builtin-rev-list.c
  85. builtin-rev-parse.c
  86. builtin-revert.c
  87. builtin-rm.c
  88. builtin-send-pack.c
  89. builtin-shortlog.c
  90. builtin-show-branch.c
  91. builtin-show-ref.c
  92. builtin-stripspace.c
  93. builtin-symbolic-ref.c
  94. builtin-tag.c
  95. builtin-tar-tree.c
  96. builtin-unpack-objects.c
  97. builtin-update-index.c
  98. builtin-update-ref.c
  99. builtin-upload-archive.c
  100. builtin-verify-pack.c
  101. builtin-verify-tag.c
  102. builtin-write-tree.c
  103. builtin.h
  104. bundle.c
  105. bundle.h
  106. cache-tree.c
  107. cache-tree.h
  108. cache.h
  109. check-builtins.sh
  110. check-racy.c
  111. color.c
  112. color.h
  113. combine-diff.c
  114. command-list.txt
  115. commit.c
  116. commit.h
  117. config.c
  118. config.mak.in
  119. configure.ac
  120. connect.c
  121. convert.c
  122. copy.c
  123. COPYING
  124. csum-file.c
  125. csum-file.h
  126. ctype.c
  127. daemon.c
  128. date.c
  129. decorate.c
  130. decorate.h
  131. delta.h
  132. diff-delta.c
  133. diff-lib.c
  134. diff.c
  135. diff.h
  136. diffcore-break.c
  137. diffcore-delta.c
  138. diffcore-order.c
  139. diffcore-pickaxe.c
  140. diffcore-rename.c
  141. diffcore.h
  142. dir.c
  143. dir.h
  144. dump-cache-tree.c
  145. entry.c
  146. environment.c
  147. exec_cmd.c
  148. exec_cmd.h
  149. fast-import.c
  150. fetch-pack.h
  151. fixup-builtins
  152. generate-cmdlist.sh
  153. git-add--interactive.perl
  154. git-am.sh
  155. git-archimport.perl
  156. git-bisect.sh
  157. git-clone.sh
  158. git-compat-util.h
  159. git-cvsexportcommit.perl
  160. git-cvsimport.perl
  161. git-cvsserver.perl
  162. git-filter-branch.sh
  163. git-instaweb.sh
  164. git-lost-found.sh
  165. git-merge-octopus.sh
  166. git-merge-one-file.sh
  167. git-merge-resolve.sh
  168. git-merge-stupid.sh
  169. git-merge.sh
  170. git-mergetool.sh
  171. git-parse-remote.sh
  172. git-pull.sh
  173. git-quiltimport.sh
  174. git-rebase--interactive.sh
  175. git-rebase.sh
  176. git-relink.perl
  177. git-remote.perl
  178. git-repack.sh
  179. git-request-pull.sh
  180. git-send-email.perl
  181. git-sh-setup.sh
  182. git-stash.sh
  183. git-submodule.sh
  184. git-svn.perl
  185. GIT-VERSION-GEN
  186. git-web--browse.sh
  187. git.c
  188. git.spec.in
  189. grep.c
  190. grep.h
  191. hash-object.c
  192. hash.c
  193. hash.h
  194. help.c
  195. http-push.c
  196. http-walker.c
  197. http.c
  198. http.h
  199. ident.c
  200. imap-send.c
  201. index-pack.c
  202. INSTALL
  203. interpolate.c
  204. interpolate.h
  205. list-objects.c
  206. list-objects.h
  207. lockfile.c
  208. log-tree.c
  209. log-tree.h
  210. mailmap.c
  211. mailmap.h
  212. Makefile
  213. match-trees.c
  214. merge-file.c
  215. merge-index.c
  216. merge-recursive.h
  217. merge-tree.c
  218. mktag.c
  219. mktree.c
  220. object-refs.c
  221. object.c
  222. object.h
  223. pack-check.c
  224. pack-redundant.c
  225. pack-write.c
  226. pack.h
  227. pager.c
  228. parse-options.c
  229. parse-options.h
  230. patch-delta.c
  231. patch-id.c
  232. patch-ids.c
  233. patch-ids.h
  234. path-list.c
  235. path-list.h
  236. path.c
  237. pkt-line.c
  238. pkt-line.h
  239. pretty.c
  240. progress.c
  241. progress.h
  242. quote.c
  243. quote.h
  244. reachable.c
  245. reachable.h
  246. read-cache.c
  247. README
  248. receive-pack.c
  249. reflog-walk.c
  250. reflog-walk.h
  251. refs.c
  252. refs.h
  253. remote.c
  254. remote.h
  255. revision.c
  256. revision.h
  257. run-command.c
  258. run-command.h
  259. send-pack.h
  260. server-info.c
  261. setup.c
  262. sha1_file.c
  263. sha1_name.c
  264. shallow.c
  265. shell.c
  266. shortlog.h
  267. show-index.c
  268. sideband.c
  269. sideband.h
  270. strbuf.c
  271. strbuf.h
  272. symlinks.c
  273. tag.c
  274. tag.h
  275. tar.h
  276. test-absolute-path.c
  277. test-chmtime.c
  278. test-date.c
  279. test-delta.c
  280. test-genrandom.c
  281. test-match-trees.c
  282. test-parse-options.c
  283. test-sha1.c
  284. test-sha1.sh
  285. thread-utils.c
  286. thread-utils.h
  287. trace.c
  288. transport.c
  289. transport.h
  290. tree-diff.c
  291. tree-walk.c
  292. tree-walk.h
  293. tree.c
  294. tree.h
  295. unpack-file.c
  296. unpack-trees.c
  297. unpack-trees.h
  298. update-server-info.c
  299. upload-pack.c
  300. usage.c
  301. utf8.c
  302. utf8.h
  303. var.c
  304. walker.c
  305. walker.h
  306. write_or_die.c
  307. ws.c
  308. wt-status.c
  309. wt-status.h
  310. xdiff-interface.c
  311. xdiff-interface.h