]> git.ipfire.org Git - thirdparty/git.git/commit - rerere.c
rerere: refactor rerere logic to make it independent from I/O
authorJunio C Hamano <gitster@pobox.com>
Fri, 25 Dec 2009 22:34:53 +0000 (14:34 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Jan 2010 02:03:21 +0000 (18:03 -0800)
commit27d6b08536838fff0e3568a57cc622ca1c39bf01
treece080056cf1a937c1ab4f495f53d04e40761ef4a
parentd58ee6dbf67614ef4854e0d8af8188cd84ae5107
rerere: refactor rerere logic to make it independent from I/O

This splits the handle_file() function into in-core part and I/O
parts of the logic to create the preimage, so that we can compute
the conflict identifier without having to use temporary files.

Earlier, I thought the output from handle_file() should also be
refactored, but it is always about writing preimage (or thisimage)
that is used for later three-way merge, so it is saner to keep it
to always write to FILE *.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
rerere.c