]> granicus.if.org Git - git/commit
Merge branch 'ab/get-short-oid'
authorJunio C Hamano <gitster@pobox.com>
Wed, 30 May 2018 05:04:11 +0000 (14:04 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 May 2018 05:04:11 +0000 (14:04 +0900)
commitab48bc0aeadd7f6b661bc125a913e1c7d145cd5e
tree98bbbcf8dd2e210de83c71b2aecc508e9e7ba395
parent54db5c0e1edf0d92bd474f515fab349b98c18a24
parent5cc044e02571e93048160d94e64fe6d8dd96597e
Merge branch 'ab/get-short-oid'

When a short hexadecimal string is used to name an object but there
are multiple objects that share the string as the prefix of their
names, the code lists these ambiguous candidates in a help message.
These object names are now sorted according to their types for
easier eyeballing.

* ab/get-short-oid:
  get_short_oid: sort ambiguous objects by type, then SHA-1
  sha1-name.c: move around the collect_ambiguous() function
  git-p4: change "commitish" typo to "committish"
  sha1-array.h: align function arguments
  sha1-name.c: remove stray newline
sha1-name.c