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

Re: [RFC PATCH] Move git-dir for submodules

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 22, 2011, 20:30 UTC
Message-ID
<7v62muys6l.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110722190223.GA27076@kolya>
Fredrik Gustafsson <iveqy@iveqy.com> writes:
Show 9 quoted lines
>> I wonder if we want a new option to "git rev-parse" so that we can say
>> 
>> 	git rev-parse --is-well-formed-git-dir init/.git
>> 
>> to perform these checks without exposing the implimentation detail.
>
> How about using
> (cd <repo>; git rev-parse --verify HEAD" >/dev/null)
> instead?
Can the <repo> be without any commit, i.e. just after created?
Previous: Fredrik Gustafsson
Message 8 of 8 in “Move git-dir for submodules”
  1. Move git-dir for submodulesFredrik Gustafsson, Jul 21, 2011
  2. Junio C HamanoJul 21, 2011
  3. Phil HordJul 21, 2011
  4. Phil HordJul 21, 2011
  5. Junio C HamanoJul 21, 2011
  6. Junio C HamanoJul 21, 2011
  7. Fredrik GustafssonJul 22, 2011
  8. Junio C HamanoJul 22, 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.