Re: [PATCH v2 2/2] Submodules: Don't parse .gitmodules when it contains, merge conflicts

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH v2 2/2] Submodules: Don't parse .gitmodules when it contains, merge conflicts

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:14

Nguyen Thai Ngoc Duy [off-list ref] writes:
On Sat, May 14, 2011 at 11:26 PM, Jens Lehmann [off-list ref] wrote:
quoted
Commands like "git status", "git diff" and "git fetch" would fail when the
.gitmodules file contained merge conflicts because ...
Side note. .gitattributes and .gitignore likely suffer the same.
Perhaps the unmerged check in this patch can be generalized for reuse.
I am somewhat skeptical about that statement.  These files are designed to
be one-entry-per-line so that useful information in the non-conflicted
parts in a conflicted file (which should be majority) can still be used.
Only the .gitmodules is an oddball.

Re: [PATCH v2 2/2] Submodules: Don't parse .gitmodules when it contains, merge conflicts

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:51:14

On Sun, May 15, 2011 at 12:56 AM, Junio C Hamano [off-list ref] wrote:
Nguyen Thai Ngoc Duy [off-list ref] writes:
quoted
On Sat, May 14, 2011 at 11:26 PM, Jens Lehmann [off-list ref] wrote:
quoted
Commands like "git status", "git diff" and "git fetch" would fail when the
.gitmodules file contained merge conflicts because ...
Side note. .gitattributes and .gitignore likely suffer the same.
Perhaps the unmerged check in this patch can be generalized for reuse.
I am somewhat skeptical about that statement.  These files are designed to
be one-entry-per-line so that useful information in the non-conflicted
parts in a conflicted file (which should be majority) can still be used.
Only the .gitmodules is an oddball.
True for .gitignore. A line in .gitattributes is more complex, it's
easier to break the parser with conflict markers. Anyway unmerged
entries should not be used until they're cleaned up, or can be used
with a big fat warning.
-- 
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