Re: file disappears after git rebase (missing one commit)
- From
- Torgil Svensson <torgil.svensson@gmail.com>
- Date
- Aug 18, 2007, 20:29 UTC
- Message-ID
- <e7bda7770708181329i7a64e613y88187a608c323a07@mail.gmail.com>
- In-Reply-To
- <alpine.LFD.0.999.0708181247330.30176@woody.linux-foundation.org>
On 8/18/07, Linus Torvalds <torvalds@linux-foundation.org> wrote:
> > The reason, I think, is that I suspect that the newly added file is a > binary file, no?
Yes, that's correct.
Show 6 quoted lines
> That, in turn, will mean that the *patch* will have no > patch ID (or rather, it will have an empty patch ID) - which in turn will > make it invisible to "--ignore-if-in-upstream" if there are already some > *other* patches that also just adds a binary file (which I think there is: > I think upstream has "Add disk summarize tool (du.exe)" which I assume has > exactly the same patch fingerprint).
The "du.exe" is only in the devel branch but there is five other patches that meets your criteria.
> In other words, "git rebase" really is just a series of cherry-picks, but > it avoids patches that have the same patch ID as something that is already > upstream. That helps *enormously*, but it so happens that the patch ID's > don't work really well for binary diffs.
Git cherry-pick seems to work on that particular patch:
$ git cherry-pick b11cf4ce6262a7c3b243e3cfdc70e6b44682cb59 Finished one cherry-pick. Created commit 92a58d3: Added msmtp.exe SMTP client 1 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 bin/msmtp.exe
> Try this patch - see if it helps. Totally untested! It will enable patch > ID's on binary diffs too, which should avoid this issue.
That didn't help. Same symptom.
//Torgil