From: Adam Mercer <ramercer@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: Determining if a file exists in a bare repo
Date: Tue, 4 May 2010 11:57:12 -0500 [thread overview]
Message-ID: <z2p799406d61005040957j93f8f4a3zfb8a9f38dbe7c72c@mail.gmail.com> (raw)
In-Reply-To: <7v7hnjoc3i.fsf@alter.siamese.dyndns.org>
On Tue, May 4, 2010 at 11:39, Junio C Hamano <gitster@pobox.com> wrote:
> Even if it returned an error status, you are discarding it by placing the
> process on the upstream side of the pipe, so your command line above won't
> be able to catch an error anyway.
Sorry I wasn't very clear, first I trying to use git-show if the file
existed and then piping the output to rst2html...
> I would probably do something like this
> if I were you:
>
> git rev-parse --verify master:INSTALL >/dev/null 2>&1 &&
> git cat-file blob master:INSTALL | rst2...
Thanks, thats a better approach!
Cheers
Adam
prev parent reply other threads:[~2010-05-04 16:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-04 16:11 Determining if a file exists in a bare repo Adam Mercer
2010-05-04 16:18 ` Jacob Helwig
2010-05-04 16:26 ` Adam Mercer
2010-05-04 16:39 ` Junio C Hamano
2010-05-04 16:57 ` Adam Mercer [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=z2p799406d61005040957j93f8f4a3zfb8a9f38dbe7c72c@mail.gmail.com \
--to=ramercer@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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).