git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: file disappears after git rebase (missing one commit)

From
TSTorgil 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
Previous: Linus TorvaldsNext: Linus Torvalds
Message 3 of 6 in “file disappears after git rebase (missing one commit)”
  1. Torgil SvenssonAug 18, 2007
  2. Linus TorvaldsAug 18, 2007
  3. Torgil SvenssonAug 18, 2007
  4. Linus TorvaldsAug 18, 2007
  5. Torgil SvenssonAug 18, 2007
  6. Take binary diffs into account for "git rebase"Linus Torvalds, Aug 18, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.