git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3 1/2] rev-parse: add option --is-well-formed-git-dir [path]

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Aug 13, 2011, 06:13 UTC
Message-ID
<20110813061342.GA459@book.hvoigt.net>
In-Reply-To
<CACsJy8D7W54w3ji6foXySCuvNLLBu=FY70z8+kB5hmJT_-3yCg@mail.gmail.com>
Hi,
On Sat, Aug 13, 2011 at 09:49:56AM +0700, Nguyen Thai Ngoc Duy wrote:
Show 7 quoted lines
> On Sat, Aug 13, 2011 at 2:55 AM, Fredrik Gustafsson <iveqy@iveqy.com> wrote:
> \> +--is-well-formed-git-dir [path]::
> > + ?? ?? ?? Check if [path] is a valid git-dir or a git-file pointing to a valid
> > + ?? ?? ?? git-dir. If [path] is a valid git-dir the resolved path to git-dir will
> > + ?? ?? ?? be printed.
> 
> May I suggest --is-valid-git-dir?
While we are talking about names how about:
	--resolve-git-dir

? Since we had this information already the option prints out the found resolved git directory and could be used for that.

Cheers Heiko
Previous: Nguyen Thai Ngoc DuyNext: Junio C Hamano
Message 5 of 10 in “submodule: move gitdir into superproject”
  1. 0/2 submodule: move gitdir into superprojectFredrik Gustafsson, Aug 12, 2011
  2. 1/2 rev-parse: add option --is-well-formed-git-dir [path]Fredrik Gustafsson, Aug 12, 2011
  3. Junio C HamanoAug 12, 2011
  4. Nguyen Thai Ngoc DuyAug 13, 2011
  5. Heiko VoigtAug 13, 2011
  6. Junio C HamanoAug 14, 2011
  7. 2/2 Move git-dir for submodulesFredrik Gustafsson, Aug 12, 2011
  8. Marc BranchaudAug 15, 2011
  9. Fredrik GustafssonAug 15, 2011
  10. Junio C HamanoAug 16, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.