Johannes Sixt wrote: > Am 02.06.21 um 01:44 schrieb Felipe Contreras: > > Junio C Hamano wrote: > >> Junio C Hamano <gitster@xxxxxxxxx> writes: > >>> David Aguilar <davvid@xxxxxxxxx> writes: > > > >>>> +1 for merge.conflictstyle = diff3, rerere.enabled = true, and > >>>> log.decorate = short from me. I noticed others already mentioned > >>>> these. > > Does diff3 conflict style reduce conflicts to their minimum? The objective is to resolve conflicts, not to see minimum conflicts. > >>> As the inventor of rerere, I agree on rerere.enabled. It was made > >>> opt-in only because I thought it was somewhat risky when the feature > >>> was introduced, but it has been stable and useful, and it is long > >>> overdue to be enabled by default. > >> > >> Just to make sure, rerere.enabled is fine, but as I am not > >> comfortable to recommend rerere.autoupdate to any human users, I > >> would be opposed to turning it on by default. Giving people a > >> choice is fine, but the default should be a safe one that offers > >> users a chance of final sanity checking before proceeding. > > > > No commit is made. Doesn't `git diff --staged` offer users such chance? > > rerere.autoupdate erases the information which files had conflicts. In > my workflow, the rerere database time and again does hold outdated merge > resolutions. I want to have an opportunity to cross-check the automatic > resolutions, and for that I need to know which files had conflicts. Then do rerere.autoupdate=false. Defaults are not for you, they are for the majority of users. Cheers. -- Felipe Contreras