git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git rerere to remember half-merged progress - valid use?
@ 2018-03-10 14:22 Ilya Kantor
  2018-03-11  0:00 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Ilya Kantor @ 2018-03-10 14:22 UTC (permalink / raw)
  To: git

Hi,

Let's say I'm merging a branch with many conflicts.
I resolved some of them, but then can't proceed or need to switch elsewhere.

Will it be a good practice to call `git rerere` to remember resolved
conflicts, so that in the future
when I re-merge, I get my half-done merge back?

I couldn't find such use of rerere in the internet.

How can I save the merge/restore progress otherwise?

---
Best Regards,
Ilya Kantor

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git rerere to remember half-merged progress - valid use?
  2018-03-10 14:22 git rerere to remember half-merged progress - valid use? Ilya Kantor
@ 2018-03-11  0:00 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2018-03-11  0:00 UTC (permalink / raw)
  To: Ilya Kantor; +Cc: git

Ilya Kantor <iliakan@gmail.com> writes:

> Let's say I'm merging a branch with many conflicts.
> I resolved some of them, but then can't proceed or need to switch elsewhere.
>
> Will it be a good practice to call `git rerere` to remember resolved
> conflicts, so that in the future
> when I re-merge, I get my half-done merge back?

As many of real world issues, the answer is "it depends".  

If you are absolutely sure about what you have resolved so far, then
recording the resolutions for files that you have finished while
there are still other files with conflicts to be resolved before
switching away to another task is a very sensible thing to do.

On the other hand, recording resolutions you are not sure about
means more work for you when you come back and attempt the merge
again, as you would need to check resolutions of which files need
to be nuked and redone (using "checkout -m" and "rerere forget").

My personal strategy is to avoid abandoning conflict resolution in
the middle in the first place ;-), but in many cases I can be quite
confident that I resolved conflicts in a file correctly without
looking at conflicts in other files, so I do not think it is a bad
practice to record resolution of files you resolved so far by
calling "rerere" manually.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-11  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-10 14:22 git rerere to remember half-merged progress - valid use? Ilya Kantor
2018-03-11  0:00 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).