@@ -324,14 +324,14 @@ <h2>SYNOPSIS</h2>
324324</ div >
325325< h2 id ="_description "> DESCRIPTION</ h2 >
326326< div class ="sectionbody ">
327- < div class ="para "> < p > In a workflow that employs relatively long lived topic branches,
328- the developer sometimes needs to resolve the same conflict over
327+ < div class ="para "> < p > In a workflow employing relatively long lived topic branches,
328+ the developer sometimes needs to resolve the same conflicts over
329329and over again until the topic branches are done (either merged
330330to the "release" branch, or sent out and accepted upstream).</ p > </ div >
331- < div class ="para "> < p > This command helps this process by recording conflicted
332- automerge results and corresponding hand- resolve results on the
333- initial manual merge, and later by noticing the same automerge
334- results and applying the previously recorded hand resolution .</ p > </ div >
331+ < div class ="para "> < p > This command assists the developer in this process by recording
332+ conflicted automerge results and corresponding hand resolve results
333+ on the initial manual merge, and applying previously recorded
334+ hand resolutions to their corresponding automerge results .</ p > </ div >
335335< div class ="admonitionblock ">
336336< table > < tr >
337337< td class ="icon ">
@@ -383,19 +383,19 @@ <h2 id="_commands">COMMANDS</h2>
383383</ dt >
384384< dd >
385385< p >
386- This command is used to prune records of conflicted merge that
387- occurred long time ago. By default, conflicts older than 15
388- days that you have not recorded their resolution, and conflicts
389- older than 60 days, are pruned. These are controlled with
386+ This prunes records of conflicted merges that
387+ occurred a long time ago. By default, unresolved conflicts older
388+ than 15 days and resolved conflicts older than 60
389+ days are pruned. These defaults are controlled via the
390390< tt > gc.rerereunresolved</ tt > and < tt > gc.rerereresolved</ tt > configuration
391- variables.
391+ variables respectively .
392392</ p >
393393</ dd >
394394</ dl > </ div >
395395</ div >
396396< h2 id ="_discussion "> DISCUSSION</ h2 >
397397< div class ="sectionbody ">
398- < div class ="para "> < p > When your topic branch modifies overlapping area that your
398+ < div class ="para "> < p > When your topic branch modifies an overlapping area that your
399399master branch (or upstream) touched since your topic branch
400400forked from it, you may want to test it with the latest master,
401401even before your topic branch is ready to be pushed upstream:</ p > </ div >
@@ -464,39 +464,38 @@ <h2 id="_discussion">DISCUSSION</h2>
464464< div class ="para "> < p > This would leave only one merge commit when your topic branch is
465465finally ready and merged into the master branch. This merge
466466would require you to resolve the conflict, introduced by the
467- commits marked with < tt > *</ tt > . However, often this conflict is the
467+ commits marked with < tt > *</ tt > . However, this conflict is often the
468468same conflict you resolved when you created the test merge you
469- blew away. < em > git-rerere</ em > command helps you to resolve this final
469+ blew away. < em > git-rerere</ em > helps you resolve this final
470470conflicted merge using the information from your earlier hand
471471resolve.</ p > </ div >
472472< div class ="para "> < p > Running the < em > git-rerere</ em > command immediately after a conflicted
473473automerge records the conflicted working tree files, with the
474474usual conflict markers < tt > <<<<<<<</ tt > , < tt > =======</ tt > , and < tt > >>>>>>></ tt > in
475475them. Later, after you are done resolving the conflicts,
476- running < em > git-rerere</ em > again records the resolved state of these
476+ running < em > git-rerere</ em > again will record the resolved state of these
477477files. Suppose you did this when you created the test merge of
478478master into the topic branch.</ p > </ div >
479- < div class ="para "> < p > Next time, running < em > git-rerere</ em > after seeing a conflicted
480- automerge, if the conflict is the same as the earlier one
481- recorded, it is noticed and a three-way merge between the
479+ < div class ="para "> < p > Next time, after seeing the same conflicted automerge,
480+ running < em > git-rerere</ em > will perform a three-way merge between the
482481earlier conflicted automerge, the earlier manual resolution, and
483- the current conflicted automerge is performed by the command .
482+ the current conflicted automerge.
484483If this three-way merge resolves cleanly, the result is written
485- out to your working tree file, so you would not have to manually
484+ out to your working tree file, so you do not have to manually
486485resolve it. Note that < em > git-rerere</ em > leaves the index file alone,
487486so you still need to do the final sanity checks with < tt > git diff</ tt >
488487(or < tt > git diff -c</ tt > ) and < em > git-add</ em > when you are satisfied.</ p > </ div >
489488< div class ="para "> < p > As a convenience measure, < em > git-merge</ em > automatically invokes
490- < em > git-rerere</ em > when it exits with a failed automerge, which
491- records it if it is a new conflict, or reuses the earlier hand
489+ < em > git-rerere</ em > upon exiting with a failed automerge and < em > git-rerere </ em >
490+ records the hand resolve when it is a new conflict, or reuses the earlier hand
492491resolve when it is not. < em > git-commit</ em > also invokes < em > git-rerere</ em >
493- when recording a merge result. What this means is that you do
494- not have to do anything special yourself (Note: you still have
495- to set the config variable rerere.enabled to enable this command ).</ p > </ div >
496- < div class ="para "> < p > In our example, when you did the test merge, the manual
492+ when committing a merge result. What this means is that you do
493+ not have to do anything special yourself (besides enabling
494+ the rerere.enabled config variable ).</ p > </ div >
495+ < div class ="para "> < p > In our example, when you do the test merge, the manual
497496resolution is recorded, and it will be reused when you do the
498- actual merge later with updated master and topic branch, as long
499- as the earlier resolution is still applicable.</ p > </ div >
497+ actual merge later with the updated master and topic branch, as long
498+ as the recorded resolution is still applicable.</ p > </ div >
500499< div class ="para "> < p > The information < em > git-rerere</ em > records is also used when running
501500< em > git-rebase</ em > . After blowing away the test merge and continuing
502501development on the topic branch:</ p > </ div >
@@ -512,11 +511,11 @@ <h2 id="_discussion">DISCUSSION</h2>
512511 /
513512 o---o---o---*---o---o---o---o master</ tt > </ pre >
514513</ div > </ div >
515- < div class ="para "> < p > you could run < tt > git rebase master topic</ tt > , to keep yourself
516- up-to-date even before your topic is ready to be sent upstream.
517- This would result in falling back to three-way merge, and it
518- would conflict the same way the test merge you resolved earlier.
519- < em > git-rerere</ em > is run by < em > git-rebase</ em > to help you resolve this
514+ < div class ="para "> < p > you could run < tt > git rebase master topic</ tt > , to bring yourself
515+ up-to-date before your topic is ready to be sent upstream.
516+ This would result in falling back to a three-way merge, and it
517+ would conflict the same way as the test merge you resolved earlier.
518+ < em > git-rerere</ em > will be run by < em > git-rebase</ em > to help you resolve this
520519conflict.</ p > </ div >
521520</ div >
522521< h2 id ="_author "> Author</ h2 >
@@ -529,7 +528,7 @@ <h2 id="_git">GIT</h2>
529528</ div >
530529< div id ="footer ">
531530< div id ="footer-text ">
532- Last updated 2009-04-02 06:50:02 UTC
531+ Last updated 2009-06-14 01:03:01 UTC
533532</ div >
534533</ div >
535534</ body >
0 commit comments