Skip to contentSkip to conversation

Teaching rerere about existing merges

DISCUSSION Jeremy Rosen 3 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hello everybody

I have just discovered rerere which seems to be an awesome feature....

unfortunately I have been merging and resolving conflicts on my repository for quite some time and I will soon do a rebase that would greatly gain from using rerere...

is there a way to "teach" rerere about existing merge commits, or do I have to re-solve all the existing merge manually once ?

Regards

Jérémy Rosen

fight key loggers : write some perl using vim

#1 lore raw
Quoted 2 lines · Jeremy Rosen

is there a way to "teach" rerere about existing merge commits, or do I have to re-solve all the existing merge manually once ?

There is a tool that does the "re-solve manually" for you.

$ git ls-files | grep rerere-train
contrib/rerere-train.sh

It uses your working tree to do its work, so you should first commit or stash whatever you are in the middle of doing before using it.

#3 lore raw

thanks a lot, that solves my problem.

I'm a bit suprised that it's not part of the git-rerere command but that's good enough for me...

Cordialement

Jérémy Rosen

fight key loggers : write some perl using vim

----- Mail original -----

Quoted 10 lines
Quoted 3 lines · Jeremy Rosen

is there a way to "teach" rerere about existing merge commits, or do I
have to re-solve all the existing merge manually once ?

See src/contrib/rerere-train.sh and Junio's blog.

http://git-blame.blogspot.com/2012/04/rebuilding-git-integration-environment.html