Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

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

From: Duy Nguyen <hidden>
Date: 2016-06-15 23:08:30

On Sat, Feb 27, 2016 at 3:51 AM, Stefan Beller [off-list ref] wrote:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help