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

Re: [RFC PATCH 0/2] better handle .gitmodules merge conflicts

From
Marc Branchaud <marcnarc@xiplink.com>
Date
May 13, 2011, 15:01 UTC
Message-ID
<4DCD47B5.8050505@xiplink.com>
In-Reply-To
<4DCC4A9D.3060007@web.de>
On 11-05-12 05:01 PM, Jens Lehmann wrote:
Show 8 quoted lines
> This series contains a test to reproduce and a first attempt to fix the
> problem that "git diff", "git status" and "git fetch" die early when the
> .gitmodules file contains merge conflict markers. As I am not aware of any
> bug reports yet it looks like that either doesn't happen very often in the
> wild ("git diff" parses the .gitmodules file since 1.7.3, but even as
> heavy submodule users we only hit this once just recently) or the users
> encountering this problem just know what to do: resolve the conflict and
> carry on.
I fell in the latter camp when I ran into this.

I like to examine conflicts with "git gui" but IIRC it doesn't display any conflicting files when there's a conflict in .gitmodules (it won't even display conflicts in other files, presumably because some plumbing failed early on the .gitmodules conflict). That was quite a "WTF?" moment...

> But that is no excuse to behave so unfriendly, especially as this can
> happen in a completely normal workflow, when e.g. two users are adding
> different submodules in separate branches and they get merged. So this
> RFC patch is my first attempt to avoid those commands dying.
Yup -- thanks for addressing this!
		M.
Previous: Junio C Hamano
Message 6 of 6 in “better handle .gitmodules merge conflicts”
  1. 0/2 better handle .gitmodules merge conflictsJens Lehmann, May 12, 2011
  2. 1/2 test that git status works with merge conflict in .gitmodulesJens Lehmann, May 12, 2011
  3. Junio C HamanoMay 13, 2011
  4. 2/2 Submodules: Don't parse .gitmodules when it contains merge conflictsJens Lehmann, May 12, 2011
  5. Junio C HamanoMay 13, 2011
  6. Marc BranchaudMay 13, 2011

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.