Re: git-name-rev off-by-one bug
From: Daniel Barkalow <hidden>
Date: 2016-06-15 22:42:14
On Tue, 29 Nov 2005, Linus Torvalds wrote:
If we left things in the index in an unmerged state, we'd be guaranteed to either _fail_ that git commit unless somebody has done the git-update-index (or names the files specifically on the commit command line, which will do it for you).
At this point, we could have a "git-merged-by-hand" script that would take filenames, check that they're unmerged now, and, if so, call git-update-index for them. And it could have a -a to do all of the unmerged entries (i.e., "I'm done merging by hand"), and maybe also have a flag to git-commit that does this, so you can say, "Commit the merge I did by hand, whatever filenames it used, but not any other changes I may have had beforehand." The "merged-by-hand" script would probably be a sensible place to complain about leftover conflict markers (unless you force it). -Daniel *This .sig left intentionally blank*