Re: What's in git.git

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: <git@...>
Date: Wednesday, May 10, 2006 - 12:41 am

Linus Torvalds <torvalds@osdl.org> writes:


It is problematic but not more than the current index + "Binary
files differ" output.  If you have both pre and postimage then
you do not need the binary data.

The forward application is done assuming you have the preimage
(but not necessarily postimage), and when you do not have
postimage the binary data is used.  When going reverse we should
assume you have the postimage (but not necessarily preimage),
but the pack-object format xdelta is not reversible so if you do
not have preimage that matches the index, with the current
output format you lose.

If we care enough, we could add a reverse delta from postimage
to preimage to the output, but I am not sure if it is worth it.


Yes, but even without binary, -R has a funny implication when
copy-edit patch is involved.  What if a patch copy-edits to
create a new file B based on old A, and also modifies A
in-place, and somehow the postimages of A and B you already have
are not consistent with what that patch does?  Application with
-R would produce two versions of A and you would get a conflict.
I guess showing a combined diff would be a helpful way to
resolve that ;-).

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
What's in git.git, Junio C Hamano, (Tue May 9, 11:11 pm)
Re: What's in git.git, Martin Langhoff, (Wed May 10, 1:34 am)
Re: What's in git.git, Randal L. Schwartz, (Wed May 10, 12:36 am)
Re: What's in git.git, Junio C Hamano, (Wed May 10, 1:05 am)
Re: What's in git.git, Linus Torvalds, (Wed May 10, 12:45 am)
Re: What's in git.git, Nicolas Pitre, (Wed May 10, 10:15 am)
Re: What's in git.git, Linus Torvalds, (Wed May 10, 12:48 pm)
Re: What's in git.git, Alex Riesen, (Wed May 10, 11:00 am)
Re: What's in git.git, Linus Torvalds, (Wed May 10, 12:21 am)
Re: What's in git.git, Junio C Hamano, (Wed May 10, 12:41 am)
Re: What's in git.git, Linus Torvalds, (Wed May 10, 12:51 am)
Re: What's in git.git, Linus Torvalds, (Wed May 10, 12:26 am)
Re: What's in git.git, Linus Torvalds, (Tue May 9, 11:48 pm)