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

Re: [PATCH 0/2] recursive submodules: paths are hard

From
Duy Nguyen <pclouds@gmail.com>
Date
Feb 27, 2016, 01:58 UTC
Message-ID
<CACsJy8Bsy1-14RhKES7AWWS8RSKbvPtu46cgGnmkuSXrUsq84g@mail.gmail.com>
In-Reply-To
<1456519912-10641-1-git-send-email-sbeller@google.com>
On Sat, Feb 27, 2016 at 3:51 AM, Stefan Beller <sbeller@google.com> wrote:
Show 7 quoted lines
> I think we may need to enable Git to pass in 'negative' pathes for the prefix,
> i.e.
>   Although operating on this repository, your reference for displaying paths
>   should be '../untracked' for the example above, when the submodule is in the
>   root directory of the superproject.
>
> This seems currently not possible with the standard way to pass down the prefix.

The problem is, prefix is meant for inside worktree area only. Many code paths are not ready for prefix "../". Worse, in some cases when you launch outside worktree, prefix is empty and I think some builtin commands rely on that. However, I think you can introduce "prefix v2" that is used in parallel with "prefix v1".

-- 
Duy
Previous: Stefan Beller
Message 4 of 4 in “recursive submodules: paths are hard”
  1. 0/2 recursive submodules: paths are hardStefan Beller, Feb 26, 2016
  2. 1/2 Check recursive submodule update to have correct path from subdirectoryStefan Beller, Feb 26, 2016
  3. 2/2 submodule sync: Test we can pass individual submodulesStefan Beller, Feb 26, 2016
  4. Duy NguyenFeb 27, 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.