git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rebase -p confusion in 1.6.1
@ 2009-01-15 10:39 Sitaram Chamarty
  2009-01-15 13:34 ` Johannes Schindelin
                   ` (2 more replies)
  0 siblings, 3 replies; 28+ messages in thread
From: Sitaram Chamarty @ 2009-01-15 10:39 UTC (permalink / raw)
  To: git

Hello all,

While trying to understand "rebase -p", I came across some
very unexpected behaviour that made me throw in the towel
and ask for help!

The outputs I got really confused me.  Before the "rebase
-p", the tree looked like
    
    * 78ffda9... (refs/heads/work) b4
    * be1e3a4... b3
    *   cd8d893... Merge branch 'master' into work
    |\
    | * 0153c27... (refs/heads/master) a4
    | * 74f4387... a3
    * | f1b0c1c... b2
    * | 2e202d0... b1
    |/
    * b37ae36... a2
    * ed1e1bc... a1

But afterward, this is what it looks like -- all the "b"
commits are gone!

    * 0153c27... (refs/heads/work, refs/heads/master) a4
    * 74f4387... a3
    * b37ae36... a2
    * ed1e1bc... a1

What did I do wrong/misunderstand?

Here's how to recreate.  Note that "testci" is a shell
function and "lg" is a git alias.  They are, respectively,
(1) testci() { for i; do echo $i > $i; git add $i; git commit -m $i; done; }
(2) git config alias.lg log --graph --pretty=oneline --abbrev-commit --decorate

    git init
    testci a1 a2
    git checkout -b work
    testci b1 b2
    git checkout master
    testci a3 a4
    git checkout work
    git merge master
    testci b3 b4
    git --no-pager lg   # graph before rebase -p
    git rebase -p master
    git --no-pager lg   # graph after rebase -p

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2009-01-18  4:03 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-15 10:39 rebase -p confusion in 1.6.1 Sitaram Chamarty
2009-01-15 13:34 ` Johannes Schindelin
2009-01-15 14:51   ` Sitaram Chamarty
2009-01-15 15:09     ` Stephan Beyer
2009-01-15 15:21       ` Sitaram Chamarty
2009-01-15 13:38 ` Stephan Beyer
2009-01-15 13:58   ` Johannes Schindelin
2009-01-15 15:03     ` Sitaram Chamarty
2009-01-15 13:39 ` Michael J Gruber
2009-01-15 13:55   ` Stephan Beyer
2009-01-15 14:14     ` Michael J Gruber
2009-01-15 14:25       ` Johannes Schindelin
2009-01-15 14:45         ` Michael J Gruber
2009-01-15 16:04           ` Johannes Schindelin
2009-01-15 16:24             ` Sitaram Chamarty
2009-01-15 16:53               ` Johannes Schindelin
2009-01-15 18:22                 ` Sitaram Chamarty
2009-01-15 16:56             ` Michael J Gruber
2009-01-15 18:18               ` Johannes Schindelin
     [not found]               ` <cover.1232233454.git.stephen@exigencecorp.com>
2009-01-17 23:41                 ` [PATCH] do not drop commits before the merge base Johannes Schindelin
     [not found]                 ` <ac1a4533de095f916dd68029793c8ee6eb02d200.1232233454.git.stephen@exigencecorp.com>
     [not found]                   ` <a524993b13ee586cf0e8fbd3b6459ccd6767c6d8.1232233454.git.stephen@exigencecorp.com>
2009-01-17 23:51                     ` [PATCH] rebase -p: seed first commit in case it's before the merge bases Johannes Schindelin
2009-01-18  0:11                       ` Stephen Haberman
2009-01-18  0:19                       ` Johannes Schindelin
2009-01-18  3:57                         ` Stephen Haberman
2009-01-18  4:02                           ` Stephen Haberman
2009-01-15 14:40       ` rebase -p confusion in 1.6.1 Stephan Beyer
2009-01-15 16:43         ` Johannes Schindelin
2009-01-15 15:14   ` Sitaram Chamarty

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).