Jeff King [off-list ref] writes:
$ git show 0003^{commit}
fatal: ambiguous argument '0003^{commit}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
I think the code is right not to return an object at all (since it is
ambiguous), but it might be helpful to say "your sha1 was ambiguous, but
none of the possibilities matched our criteria" or similar. Otherwise
the error message looks exactly like the "there is no such object at
all" case.
True. Thanks for reading.