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

Re: [PATCHv2] git-p4: support git worktrees

From
Duy Nguyen <pclouds@gmail.com>
Date
Dec 13, 2016, 11:17 UTC
Message-ID
<CACsJy8A+cEJoKyfEnJvqwT4pvUGgcrmJdRmXKyRoAff4EYgcuw@mail.gmail.com>
In-Reply-To
<CAE5ih7_6Ap_dY3mRb3Hk2yzDRMkZ3HnnQOaikF=ybx_XNdVWhQ@mail.gmail.com>
On Sun, Dec 11, 2016 at 2:19 PM, Luke Diamand <luke@diamand.org> wrote:
Show 12 quoted lines
> On 10 December 2016 at 21:57, Luke Diamand <luke@diamand.org> wrote:
>> git-p4 would attempt to find the git directory using
>> its own specific code, which did not know about git
>> worktrees. This caused git operations to fail needlessly.
>>
>> Rework it to use "git rev-parse --git-dir" instead, which
>> knows about worktrees.
>
> Actually this doesn't work as well as the original version. "git
> rev-parse --git-dir" won't go and find the ".git" subdirectory. The
> previous version would go looking for it, so this would introduce a
> regression.
Maybe git rev-parse --git-path HEAD, then strip out the /HEAD part?
-- 
Duy
Previous: Luke Diamand
Message 4 of 4 in “[PATCHv2] git-p4 worktree support”
  1. Luke DiamandDec 10, 2016
  2. [PATCHv2] git-p4: support git worktreesLuke Diamand, Dec 10, 2016
  3. Luke DiamandDec 11, 2016
  4. Duy NguyenDec 13, 2016

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.