git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] better handle .gitmodules merge conflicts
@ 2011-05-14 16:25 Jens Lehmann
  2011-05-14 16:26 ` [PATCH v2 1/2] test that git status works with merge conflict in, .gitmodules Jens Lehmann
  2011-05-14 16:26 ` [PATCH v2 2/2] Submodules: Don't parse .gitmodules when it contains, merge conflicts Jens Lehmann
  0 siblings, 2 replies; 7+ messages in thread
From: Jens Lehmann @ 2011-05-14 16:25 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git Mailing List, Heiko Voigt

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-05-15  5:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-14 16:25 [PATCH v2 0/2] better handle .gitmodules merge conflicts Jens Lehmann
2011-05-14 16:26 ` [PATCH v2 1/2] test that git status works with merge conflict in, .gitmodules Jens Lehmann
2011-05-14 16:26 ` [PATCH v2 2/2] Submodules: Don't parse .gitmodules when it contains, merge conflicts Jens Lehmann
2011-05-14 16:59   ` Nguyen Thai Ngoc Duy
2011-05-14 17:46     ` Jens Lehmann
2011-05-14 17:56     ` Junio C Hamano
2011-05-15  5:00       ` Nguyen Thai Ngoc Duy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).