git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git rev-parse -q --verify $SHA doesn't always quiet errors
@ 2010-11-04 22:54 Kevin Ballard
  2010-11-05 22:40 ` Jonathan Nieder
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ballard @ 2010-11-04 22:54 UTC (permalink / raw)
  To: Git mailing list

The -q flag to git rev-parse --verify is supposed to quiet all errors.
However it doesn't appear to quiet the "short SHA1 is ambiguous" error.

% cd Dev/git
% git rev-parse -q --verify e51d
error: short SHA1 e51d is ambiguous.

I took a quick look, and the error is being emitted deep within
sha1_name.c, far outside of any access to the -q flag. I'm not sure how
to go about fixing this. Does anyone have any ideas?

Alternatively, is there a better way to tell if a given string can
resolve into a full sha1 besides

  git rev-parse -q --verify "$word" 2>/dev/null

-Kevin Ballard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-05 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-04 22:54 git rev-parse -q --verify $SHA doesn't always quiet errors Kevin Ballard
2010-11-05 22:40 ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).