git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Torgil Svensson" <torgil.svensson@gmail.com>
To: "Git Mailing List" <git@vger.kernel.org>
Cc: msysGit <msysgit@googlegroups.com>
Subject: file disappears after git rebase (missing one commit)
Date: Sat, 18 Aug 2007 21:37:34 +0200	[thread overview]
Message-ID: <e7bda7770708181237u34253bf1h7c3fe0987d13d3b3@mail.gmail.com> (raw)

Hi,

I'm trying to rebase a branch ("msmtp") on another branch ("devel").
The msmtp has a number of commits that are already in the devel branch
(but with different history) and one new commit that adds one file.

$ git clone git://repo.or.cz/msysgit.git
$ cd msysgit
$ git rev-parse origin/msmtp
b11cf4ce6262a7c3b243e3cfdc70e6b44682cb59
$ git rev-parse origin/devel
57aa8405103856106ec0e31453089c33c899c98b
$ git -b checkout devel origin/devel
$ git -b checkout msmtp origin/msmtp
$ git show-branch msmtp devel
* [msmtp] Added msmtp.exe SMTP client
 ! [devel] Add disk summarize tool (du.exe)
--
 + [devel] Add disk summarize tool (du.exe)
 + [devel^] gdb updated to v6.6
 + [devel~2] w32api updated to v3.10
 + [devel~3] Updated gcc to v3.4.5
 + [devel~4] Updated binutils to v2.17.50
 + [devel~5] Remove remnants of the c++ compiler
 + [devel~6] GitMe: only fetch 'master' of msysgit.git
 + [devel~7] GitMe: inline 7z's install script
 + [devel~8] GitMe: avoid dependency on cmd.exe
 + [devel~9] msysGit: adjust for submodule layout
 + [devel~10] msysGit: we have 7zip installed in /share/7-Zip/ now
 + [devel~11] msysGit: 7z cannot update existing installers
 + [devel~12] msysGit: move scripts to /share/msysGit/
 + [devel~13] WinGit: do not pack builtins, but copy them when unpacking
 + [devel~14] Update TODO: Marius squashed two
 + [devel~15] WinGit: strip executables (Issue 25)
 + [devel~16^2] GitMe: fix HTTP transport
 + [devel~16^2^] Undo hacky she-bang fixup
 + [devel~16^2~2] Issue 21: core.autocrlf should be set to true (at
least for end-users)
 + [devel~16^2~3] Add clear script, and remove the clear=clsb alias in profile
 + [devel~16^2~4] Make 7z functional
 + [devel~16^2~5] msys: support for Windows XP x64
 + [devel~16^2~6] Removed all SuperGitMe functionality Also propagated
latest fixes and made installer even smaller
 + [devel~16^2~7] Fixed Issue 37: Errors during install because repo
now has tags
 + [devel~18] Issue 21: core.autocrlf should be set to true (at least
for end-users)
 + [devel~19] Add clear script, and remove the clear=clsb alias in profile
 + [devel~20] Make 7z functional
 + [devel~21] msys: support for Windows XP x64
 + [devel~22] GitMe SuperFetch
 + [devel~23] Latest git submodule
*  [msmtp] Added msmtp.exe SMTP client
*  [msmtp^] gdb updated to v6.6
*  [msmtp~2] w32api updated to v3.10
*  [msmtp~3] Updated gcc to v3.4.5
*  [msmtp~4] Updated binutils to v2.17.50
*  [msmtp~5] Remove remnants of the c++ compiler
*+ [devel~24] GitMe: check if cygwin is in PATH; if so abort installer.
$ find bin -name "msmtp.exe"
bin/msmtp.exe

Note! that this file is added with the commit "*  [msmtp] Added
msmtp.exe SMTP client". After rebase I expect that this commit will be
on top of the devel branch.

$ cat .git/HEAD
ref: refs/heads/msmtp
$ git rebase devel
First, rewinding head to replay your work on top of it...
HEAD is now at 57aa840... Add disk summarize tool (du.exe)
Nothing to do.
$ git show-branch msmtp devel
* [msmtp] Add disk summarize tool (du.exe)
 ! [devel] Add disk summarize tool (du.exe)
--
*+ [msmtp] Add disk summarize tool (du.exe)
$ find bin -name "msmtp.exe"

And the msmtp commit + file is lost.

I've tested on windows (4msysgit.git):
$ git --version
git version 1.5.3.rc4.mingw.2.49.g3314

And on linux (git.git):
$ git --version
git version 1.5.2.5.g0734d

And on linux with next branch (git.git)
$ git version
git version 1.5.3.rc5.843.gdac75


Is this a bug?  Any ideas?

Best regards,

//Torgil

             reply	other threads:[~2007-08-18 19:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-18 19:37 Torgil Svensson [this message]
2007-08-18 20:01 ` file disappears after git rebase (missing one commit) Linus Torvalds
2007-08-18 20:29   ` Torgil Svensson
2007-08-18 20:55     ` Linus Torvalds
2007-08-18 21:11       ` Torgil Svensson
2007-08-18 22:52         ` Take binary diffs into account for "git rebase" Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e7bda7770708181237u34253bf1h7c3fe0987d13d3b3@mail.gmail.com \
    --to=torgil.svensson@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=msysgit@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).