On Tue, Sep 2, 2008 at 7:08 PM, HansCz <[EMAIL PROTECTED]> wrote:
>
> is there a better way to identify a git repository as such other than
> looking for a subdirectory named '.git'? 'Better' ideally meaning
> unambiguous.
To check whether you're in a working tree, you can run
"git rev-parse --is
Thanks. just what I was looking for. Could I rephrase what you said
into this slightly more elaborate statement?
If `git rev-parse --is-inside-work-tree` returns the string 'true',
one of the directories in my $PWD path contains a .git subdirectory.
This is the root of my repository.
hmm...I won