From: Junio C Hamano Date: Sun, 04 Dec 2005 06:17:28 GMT Subject: Re: [PATCH] A few more options for git-cat-file Message-ID: <7vu0dptmh3.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <43924D1C.8070306@zytor.com> "H. Peter Anvin" writes: > This adds the following options to git-cat-file: > > -n, to get the canonical name of a resource. This is for one thing > useful in tagging scripts. Isn't "git-rev-parse --verify" good enough? > -e, to test for the existence of a file. This might be useful and cleaner than "cat-file -s >/dev/null" but marginally so. While reading the whole file and discarding that to /dev/null is wasteful and would go against tastes of many people, -t and -s flags do not need to read the whole thing and not so expensive.