Re: [PATCH 6/6] Teach core object handling functions about gitlinks
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:03
Linus Torvalds [off-list ref] writes:
On Tue, 10 Apr 2007, Andy Parkins wrote:quoted
Would it be nicer if .gitmodules were line-based to aid in merging?I seriously doubt you'll ever be merging or changing this a lot. So I don't think it's a huge concern.
I think Andy's comment comes from our earlier discussion on the other in-tree configuration, .gitattributes file. We were talking about using in-tree .gitattributes for deciding if we apply crlf to each paths and other things like which 3-way file-level merge backend to apply, and need to make the system gracefully degrade even when in-tree .gitattributes have conflict markers during a merge. And for that purpose, it is certainly easier to arrange "pick each line, while ignoring <<< or === or >>>, and if there are conflicting duplicates do something sensible about them", if the file is line oriented. But I do not think the .gitmodules thing needs that. If we have conflicting (or non-conflicting for that matter) submodule moves, that's a _MAJOR_ project re-organization, and I do not think we would even want to automatically descend into submodules for merging or checking-out when we have such a situation in the higher level project.