On Sat, Mar 7, 2020 at 11:38 AM Konstantin Tokarev <annulen@xxxxxxxxx> wrote: > > 07.03.2020, 19:03, "Elijah Newren" <newren@xxxxxxxxx>: > > On Sat, Mar 7, 2020 at 5:38 AM Konstantin Tokarev <annulen@xxxxxxxxx> wrote: ... > >> However, when testing my previous merges which had to be done with helper > >> script, I've encountered case of > >> > >> CONFLICT (directory rename split) > >> > >> Is there any way to prevent conflict in this case if files are the same, and > >> merge their contents if there are differences? I think it would be reasonable > >> to assume that move done in newest commit should win, and allow user > >> to change strategy via command line option, provide explicit hint where files > >> should be moved, or maybe even decide it interactively. > > > > This conflict message is known to trigger in some cases where it > > shouldn't; it may be that you're just experiencing annoyance from > > that. Let me fix that issue before worrying about workarounds. > > Well, in my case a directory of files was moved path A in one of merged heads > and to path B in another, so I guess it was legitimate. The point of directory rename detection is to allow new paths on the unrenamed side of history to follow the directory rename. So, while there may have been an ambiguous directory rename, if there were no new paths to be moved by it, then that directory rename is irrelevant and shouldn't be reported as a problem. (If you did have new paths on the unrenamed side in that directory, then yes, it's legitimate.) > Are you going to continue development in the same branch? Nope, the branch exists for reproducibility of the demo. Right now, my plan is to work on the 'ort' branch (which the git-merge-2020-demo branch was a snapshot of), but I reserve the right at any time to push up code to that branch that doesn't even compile or is known to be horribly broken. > When do you expect it to be ready for review? Good question. There's other work I've been pushing off with the excuse of preparing for the Git Merge 2020 conference, and working on those other things may limit my time on this and make it harder to give good guestimates. I'm hoping that _parts_ of it will be ready to review a week or two after 2.26 is released. That will not mean I'm done with development at that time, just that I'm trying to get feedback in parallel with doing further development. Besides competing priorities, there's another reason to be somewhat cautious about the timeline: I don't want us to replace one area of the code that only one person is willing to touch with a different scary beast that no one wants to touch. So, I need to put some work into high level algorithm and data structure documentation, splitting up patches nicely, etc. And the purpose of writing those documents isn't to put the design in stone, but rather to make review easier -- at which point I expect at least one big change or two (and dozens of small changes) to be requested for maintenance/performance/API-design reasons. I'll be disappointed if I don't get that kind of feedback, as I'll be worried we're just putting a new black box into place. I happen to think that the basics of the new module are nicer than the old merge-recursive module I'm replacing, but the performance work complicated things a fair amount and I want to make it more approachable. So, we'll see. I know this is horribly vague. Sorry. Elijah