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

Re: Merge conflicts are reported relative to root not cwd

From
Jeff King <peff@peff.net>
Date
Apr 13, 2016, 22:41 UTC
Message-ID
<20160413224129.GC10011@sigill.intra.peff.net>
In-Reply-To
<CAGZ79kZSyLZxMXSSv=uDpuA0zTUy6nU4vwEF5f7WLhoRp1hXig@mail.gmail.com>
On Wed, Apr 13, 2016 at 03:18:24PM -0700, Stefan Beller wrote:
Show 12 quoted lines
> * This is your preference for whole-tree operations. What are
>    whole-tree operations? (Is there a concise definition?
>    Are submodules whole tree operations?)
>    These questions are motivated by origin/sb/submodule-path-misc-bugs
>    which a) fixes bugs and b) makes submodule handling consistent to the
>    relative-to-cwd philosophy. As most submodule commands touch all
>    submodules in the tree, we could argue it is a whole-tree operation, and
>    you'd like to see submodule paths from the root level, too.
> 
> I'd like to avoid adding confusion here. So is there a an easy way to tell apart
> which commands you would expect to use relative-to-cwd and which use
> relative-to-root?

I think some operations are fundamentally whole-tree. You do not merge a subtree, but create a new top-level commit. Similarly, even in:

  cd Documentation
  git log -p .

the diffs we see still show the whole path. We are traversing the whole tree.

If you are touching all submodules with an operation, I'd expect it to show full paths, not relative ones. But then I set status.relativePaths to "false", so maybe I am in the minority.

-Peff
Previous: Junio C HamanoNext: Stefan Beller
Message 5 of 7 in “Merge conflicts are reported relative to root not cwd”
  1. Stefan BellerApr 13, 2016
  2. Junio C HamanoApr 13, 2016
  3. Stefan BellerApr 13, 2016
  4. Junio C HamanoApr 13, 2016
  5. Jeff KingApr 13, 2016
  6. Stefan BellerApr 13, 2016
  7. Eric DeplagneApr 14, 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.