From: "Catalin Marinas" <catalin.marinas@gmail.com>
To: "Karl Hasselström" <kha@treskal.com>
Cc: git@vger.kernel.org
Subject: Re: stg pull/rebase
Date: Tue, 10 Jun 2008 16:43:27 +0100 [thread overview]
Message-ID: <b0943d9e0806100843j28bb3353y5889a50712377959@mail.gmail.com> (raw)
In-Reply-To: <20080610104244.GC30119@diana.vm.bytemark.co.uk>
2008/6/10 Karl Hasselström <kha@treskal.com>:
> On 2008-06-10 11:02:18 +0100, Catalin Marinas wrote:
>
>> However, I found some these policies useful. For example, I just do
>> a "stg pull" from a Subversion repository with the config below:
>>
>> [stgit]
>> pull-policy = fetch-rebase
>> fetchcmd = git svn fetch
>> rebasecmd = git svn rebase
>
> Looks useful.
>
> But what exactly is "rebasecmd" useful for, when you already have
> "fetchcmd" and a built-in rebase?
In case the built-in rebase is not enough. Can you use "git svn fetch"
followed by plain "git rebase"? There are some comments in git-svn.txt
that recommend to use "git svn rebase" to preserve linear history.
>> 2008/6/7 Karl Hasselström <kha@treskal.com>:
>> > 2. Depending on the configuration (overridable by the
>> > --fast-forward, --rebase, and --merge options), one of these
>> > three things happen:
>>
>> But "pull" always suggests fetching something. Adding "--rebase"
>> would mean that it doesn't fetch. Shouldn't we leave this
>> functionality to "rebase" only?
>
> These two things are orthogonal:
>
> 1. Whether and how to update the branch we're pulling from
> (fetching).
>
> 2. How to do the actual pulling (rebase, fast-forward, or merge).
I think it's more of an language interpretation issue (I'm not a
native English speaker). I see the "pull" action as pulling (can't
find meaningful synonyms) remote changes into the current branch (i.e.
fetch + merge). I think you see it as pulling the current stack onto a
new base (i.e. rebase).
> I envision (1) being controlled by the branch config (and overridable
> with a --no-fetch option or something), and (2) being controlled by
> another part of the branch config (and overridable with
> --fast-forward, --merge, and --rebase).
OK.
>> > 1. We pop all patches, fast-forward to the new base, and
>> > push them back. If it's not a fast-forward, we error
>> > out.
>> >
>> > 2. We pop all patches, reset to the new base, and push
>> > them back.
>> >
>> > 3. We pop all patches, merge with the other branch, then
>> > push the patches back.
>>
>> These are OK, with the comment on have rebase functionality in
>> "rebase" only.
>
> Why? I don't see the difference between rebase and the other two that
> would motivate such a separation.
See my interpretation of the word "pull". I can change my mind, no
problem, but it would be interesting to see what a native English
speaker says (though you are probably closer to English than me :-)).
--
Catalin
next prev parent reply other threads:[~2008-06-10 15:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-07 17:22 stg pull/rebase Karl Hasselström
2008-06-07 17:41 ` Jakub Narebski
2008-06-07 19:08 ` Karl Hasselström
2008-06-10 10:02 ` Catalin Marinas
2008-06-10 10:42 ` Karl Hasselström
2008-06-10 15:43 ` Catalin Marinas [this message]
2008-06-11 6:11 ` Karl Hasselström
2008-06-11 17:00 ` Catalin Marinas
2008-06-11 19:07 ` Karl Hasselström
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=b0943d9e0806100843j28bb3353y5889a50712377959@mail.gmail.com \
--to=catalin.marinas@gmail.com \
--cc=git@vger.kernel.org \
--cc=kha@treskal.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).