Re: fastest way to check if dir is a workdir

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

 



On Tue, Aug 12, 2008 at 01:34:56PM +0200, Thomas Koch wrote:

> I'm writing a little php-git-wrapper and would like to have a function
> which tells me, whether a given path is part of a git checkout or not.
> 
> What would be the fastest commandline to check, whether the current dir
> is part of a checkout? It may be assumed that the repository is at the
> standard position.

How about "git rev-parse --is-inside-work-tree"?

-Peff
--
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]

  Powered by Linux