Re: Determining if a file exists in a bare repo

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

 



On Tue, May 4, 2010 at 11:39, Junio C Hamano <gitster@xxxxxxxxx> 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
--
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]