* unexpected behavior of 'git rebase'
@ 2008-02-22 15:10 Alxneit-Kamber Ivo
2008-02-23 12:48 ` Jakub Narebski
0 siblings, 1 reply; 3+ messages in thread
From: Alxneit-Kamber Ivo @ 2008-02-22 15:10 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 1780 bytes --]
hi,
i found that 'git rebase' does not include stashed stuff. in the
following my work flow in details.
i work on branch 'topic' and stash some things away.
[alxneit@pc6411]$ git stash
gitk --all shows my stashed things on 'topic'.
index on topic: ...
/ \
B'---C'---D'---WIP on topic: ... (topic with stashed thing)
/
A---B---C (master)
i decide to rebase 'topic'.
[alxneit@pc6411]$ git rebase master topic
i would have expected to get
index on topic: ...
/ \
B'---C'---D'---WIP on topic: ... (topic with stashed thing)
/
A---B---C (master)
i.e. 'topic' including the stashed things are rebased. however, i the
result (as revealed by 'gitk --all') is
index on topic: ...
/ \
B'---C'---D'---WIP on topic: ... ---stash (gitk shows
/ no branch name
A---B---C (master) anymore)
\
B'---C'---D' (topic)
the old 'topic' branch (including the stashed things) is left behind as
an unnamed branch. only commits B', C', and D' have been rebased as
branch 'topic'.
is this the intended behavior?
thanks in advance
p.s.
[alxneit@pc6411 ]$ git --version
git version 1.5.4.2.1.gef98
p.p.s:
please cc me. i am not subscribed to the list
--
Dr. Ivo Alxneit
Laboratory for Solar Technology phone: +41 56 310 4092
Paul Scherrer Institute fax: +41 56 310 2688
CH-5232 Villigen http://solar.web.psi.ch
Switzerland gnupg key: 0x515E30C7
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unexpected behavior of 'git rebase'
2008-02-22 15:10 unexpected behavior of 'git rebase' Alxneit-Kamber Ivo
@ 2008-02-23 12:48 ` Jakub Narebski
2008-02-25 8:37 ` Alxneit-Kamber Ivo
0 siblings, 1 reply; 3+ messages in thread
From: Jakub Narebski @ 2008-02-23 12:48 UTC (permalink / raw)
To: Alxneit-Kamber Ivo; +Cc: git
"Alxneit-Kamber Ivo" <ivo.alxneit@psi.ch> writes:
> I found that 'git rebase' does not include stashed stuff.
This, I think, is caused mainly by the fact that stash is currently
global per repository, and not per-branch thing.
You can always rebase stash on top of after-rebase branch.
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: unexpected behavior of 'git rebase'
2008-02-23 12:48 ` Jakub Narebski
@ 2008-02-25 8:37 ` Alxneit-Kamber Ivo
0 siblings, 0 replies; 3+ messages in thread
From: Alxneit-Kamber Ivo @ 2008-02-25 8:37 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]
On Sat, 2008-02-23 at 04:48 -0800, Jakub Narebski wrote:
> "Alxneit-Kamber Ivo" <ivo.alxneit@psi.ch> writes:
>
> > I found that 'git rebase' does not include stashed stuff.
>
> This, I think, is caused mainly by the fact that stash is currently
> global per repository, and not per-branch thing.
>
> You can always rebase stash on top of after-rebase branch.
>
ok, thanks. so it sounds like an intended behavior (maybe the
documentation should mention this explicitly).
moving the stashed stuff to the correct place and removing the
left-behind unnamed brach is no problem.
--
Dr. Ivo Alxneit
Laboratory for Solar Technology phone: +41 56 310 4092
Paul Scherrer Institute fax: +41 56 310 2688
CH-5232 Villigen http://solar.web.psi.ch
Switzerland gnupg key: 0x515E30C7
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-25 8:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-22 15:10 unexpected behavior of 'git rebase' Alxneit-Kamber Ivo
2008-02-23 12:48 ` Jakub Narebski
2008-02-25 8:37 ` Alxneit-Kamber Ivo
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).