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

[PATCH v2 0/2] better handle .gitmodules merge conflicts

From
Jens Lehmann <jens.lehmann@web.de>
Date
May 14, 2011, 16:25 UTC
Message-ID
<4DCEACF8.50503@web.de>
Am 13.05.2011 08:19, schrieb Junio C Hamano:
> Jens Lehmann <Jens.Lehmann@web.de> writes:
>> +static int gitmodules_is_unmerged;
>
> Is it too cumbersome to pass this down the callchain as an argument?

I think so. Currently it influences the behavior of fetch, status, the diff family and commit. Having for example gitmodules_config() return that value and then pass it on would touch a lot of code (and that impact would grow even further with the recursive checkout series I'm working on).

So I thought it best to have this information statically in the submodule.c file and let the call sites who need to know that call functions there to get just the information they need and hide the details in submodule.c.

All other issues raised have been addressed in this series.
Heiko Voigt (1):
  test that git status works with merge conflict in .gitmodules
Jens Lehmann (1):
  Submodules: Don't parse .gitmodules when it contains merge conflicts
 submodule.c                 |   31 +++++++++++++-
 t/t7506-status-submodule.sh |   92 +++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 117 insertions(+), 6 deletions(-)
-- 
1.7.5.1.291.g080bb
Next: Jens Lehmann
Message 1 of 7 in “better handle .gitmodules merge conflicts”
  1. 0/2 better handle .gitmodules merge conflictsJens Lehmann, May 14, 2011
  2. 1/2 test that git status works with merge conflict in, .gitmodulesJens Lehmann, May 14, 2011
  3. 2/2 Submodules: Don't parse .gitmodules when it contains, merge conflictsJens Lehmann, May 14, 2011
  4. Nguyen Thai Ngoc DuyMay 14, 2011
  5. Jens LehmannMay 14, 2011
  6. Junio C HamanoMay 14, 2011
  7. Nguyen Thai Ngoc DuyMay 15, 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.