From: Thomas Koch <thomas@koch.ro>
To: git@vger.kernel.org
Subject: fastest way to check if dir is a workdir
Date: Tue, 12 Aug 2008 13:34:56 +0200 [thread overview]
Message-ID: <200808121334.57066.thomas@koch.ro> (raw)
Hi,
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.
Thanks a lot,
--
Thomas Koch, Software Developer
http://www.koch.ro
Young Media Concepts GmbH
Sonnenstr. 4
CH-8280 Kreuzlingen
Switzerland
Tel +41 (0)71 / 508 24 86
Fax +41 (0)71 / 560 53 89
Mobile +49 (0)170 / 753 89 16
Web www.ymc.ch
next reply other threads:[~2008-08-12 11:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-12 11:34 Thomas Koch [this message]
2008-08-12 13:01 ` fastest way to check if dir is a workdir Jeff King
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=200808121334.57066.thomas@koch.ro \
--to=thomas@koch.ro \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.