Re: [PATCH v2] refs: make rev-parse --quiet actually quiet

2014-09-19 Thread Junio C Hamano
David Aguilar writes: > When a reflog is deleted, e.g. when "git stash" clears its stashes, > "git rev-parse --verify --quiet" dies: > > fatal: Log for refs/stash is empty. > > The reason is that the get_sha1() code path does not allow us > to suppress this message. > > Pass the flags bitfi

[PATCH v2] refs: make rev-parse --quiet actually quiet

2014-09-18 Thread David Aguilar
When a reflog is deleted, e.g. when "git stash" clears its stashes, "git rev-parse --verify --quiet" dies: fatal: Log for refs/stash is empty. The reason is that the get_sha1() code path does not allow us to suppress this message. Pass the flags bitfield through get_sha1_with_context() s