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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Aguilar <davvid@xxxxxxxxx> 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 bitfield through get_sha1_with_context() so that
> read_ref_at() can suppress the message.
>
> Use get_sha1_with_context1() instead of get_sha1() in rev-parse
> so that the --quiet flag is honored.
>
> Signed-off-by: David Aguilar <davvid@xxxxxxxxx>
> ---
> This is a replacement patch for "refs: make rev-parse --quiet actually quiet"
> from da/rev-parse-verify-quiet in pu.

Looks good; thanks.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]