Thread View: linux.kernel.git
2 messages
2 total messages
Started by Junio C Hamano
Tue, 27 Oct 2026 19:48
Re: [PATCH 01/12] rerere: rename `repo_rerere()`
Author: Junio C Hamano
Date: Tue, 27 Oct 2026 19:48
Date: Tue, 27 Oct 2026 19:48
24 lines
13592 bytes
13592 bytes
Patrick Steinhardt <ps@pks.im> writes: > The `repo_rerere()` function is the only function in "rerere.h" that > does not have a `rerere_` prefix. And while it does indeed receive a > repository as first parameter, that's not a good-enough reason to give > it a `repo_` prefix. > > Rename the function to `rerere_record()` to be consistent with all the > other functions. I do not think the convention to give "repo_" prefix to variants of functions that worked only on the_repository should stay with us forever, and losing repo prefix from this function would be an excellent first move towards that future. I howevr take isseus with the verb "record" in its new name. What the function does is not just record. It autonomously finds out what situation it is in and does the logical next thing, which varies. It resolves when a recorded resolution exist. it records when seeing a particular conflict for the first time. There was no single good verb to express that. Perhaps "to rerere" or "to perform rerere" can be invented as a verb to describe such an intelligent operation?
Re: [PATCH 01/12] rerere: rename `repo_rerere()`
Author: Junio C Hamano
Date: Wed, 28 Oct 2026 16:25
Date: Wed, 28 Oct 2026 16:25
32 lines
13761 bytes
13761 bytes
Patrick Steinhardt <ps@pks.im> writes: > I was picking "record" because that's also what git-rerere(1) says: > > This command assists the developer in this process by recording > conflicted automerge results and corresponding hand resolve results on > the initial manual merge, and applying previously recorded hand > resolutions to their corresponding automerge results. > > But I guess your point is valid, as we don't only do that, but also > update merge conflicts locally. I'd pick your "perform" proposal in that Yup, the description above says "recording" and "applying". > case and rename it to `rerere_perform()` instead. That name is somewhat > vague, but I guess that cannot be helped because it actually does a > bunch of things at once. Let's just call it rerere(), then. It was the original name for the operation before it was renamed in 35843b1123 (rerere.c: remove implicit dependency on the_index, 2018-09-21), which taught it to take an instance of a repository structure. Going back to that original name is in line with what I said earlier. The "repo_" prefix is a mistaken trend, and once everything becomes free from the_repository, it would become redundant and unnecessary. Thanks.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads