From: "H. Peter Anvin" <hpa@zytor.com>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] A few more options for git-cat-file
Date: Sat, 03 Dec 2005 22:22:51 -0800 [thread overview]
Message-ID: <43928B3B.90200@zytor.com> (raw)
In-Reply-To: <7vu0dptmh3.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> "H. Peter Anvin" <hpa@zytor.com> 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?
>
Ah, yes. Except for the fact that I couldn't find it when I looked for
a command that did that. git-rev-parse seems like an eclectic mixture
of stuff, and the name isn't very clear as to what it does.
>
>>-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.
Still, -e as implemented here is definitely cheaper.
-hpa
prev parent reply other threads:[~2005-12-04 6:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-04 1:57 [PATCH] A few more options for git-cat-file H. Peter Anvin
2005-12-04 6:17 ` Junio C Hamano
2005-12-04 6:22 ` H. Peter Anvin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43928B3B.90200@zytor.com \
--to=hpa@zytor.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).