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

Re: [RFC/PATCH 1/3] git-find-git: a new helper.

From
Junio C Hamano <junkio@cox.net>
Date
Nov 24, 2005, 06:21 UTC
Message-ID
<7viruiy3ag.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<4385528D.7010203@yahoo.it>
Marco Costalba <mcostalba@yahoo.it> writes:
Show 14 quoted lines
> Junio C Hamano wrote:
>
>>  git-find-git uses it to find the
>> top-level, and if it was run from a subdirectory, outputs shell
>> script fragments that can be evaled to define the two variables:
>>     GIT_DIR_PREFIX is a string to be prepended to cwd relative
>>     paths to make them repository relative.
>>     GIT_DIR_UPLEVEL is a string (e.g. "../") for the command to
>>     use to cd to the top-level of repository.
>>
> Sounds very good.
>
> I did't had the time to test it but I think I can now
> easily update qgit to run from a subdirectory with this new helper.

The helper might be good, but it turns out that the idea of using it from git-sh-setup was not that great, so please disregard the third part of the patch. I think I need a bit more thinking about this.

Previous: Marco CostalbaNext: Josef Weidendorfer
Message 3 of 5 in “git-find-git: a new helper.”
  1. 1/3 git-find-git: a new helper.Junio C Hamano, Nov 24, 2005
  2. Marco CostalbaNov 24, 2005
  3. Junio C HamanoNov 24, 2005
  4. Josef WeidendorferDec 1, 2005
  5. Josef WeidendorferDec 1, 2005

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.