git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: "Karl Hasselström" <kha@treskal.com>
Cc: Catalin Marinas <catalin.marinas@gmail.com>, git@vger.kernel.org
Subject: Re: stg pull/rebase
Date: Sat, 07 Jun 2008 10:41:41 -0700 (PDT)	[thread overview]
Message-ID: <m3y75hw3an.fsf@localhost.localdomain> (raw)
In-Reply-To: <20080607172202.GA5179@diana.vm.bytemark.co.uk>

Karl Hasselström <kha@treskal.com> writes:

> Currently, there's stg rebase which only does rebasing, and stg pull
> which does either rebase or merge depending on a config option. And on
> top of that there's config stuff like stgit.pullcmd that is invoked in
> some cases but not others.
> 
> What I think I'd like is the following:
> 
>   * Just one command, stg pull. stg rebase is removed.

And I would have to learn to use other command (I use very frequently
the following sequence: git remote update && stg rebase <branch>)?
Not nice.
 
I already have to use two commands: "stg refresh && stg edit" to make
a change which affects how commit message is written, instead of
simplier "stg refresh --edit".

>   * When pull is invoked, the following happens:
> 
>       1. The branch we pull from may be updated, depending on the
>          configuration. (e.g. git fetch or git svn fetch)
> 
>       2. Depending on the configuration (overridable by the
>       --fast-forward, --rebase, and --merge options), one of these
>       three things happen:

Couldn't then "stg rebase" be 'internal alias' to "git pull --rebase"?

[...]
>   * The default action is to fast-forward, which is probably what most
>     users want -- merge is very likely to do the wrong thing, and
>     rebase can lose changes.

Unless you want to rebase on top of different branch, for example
moving stack from 'master' to 'next', or when you work on top of
branch which doesn't fast-forward, like 'pu' in git repository.
 
-- 
Jakub Narebski
Poland
ShadeHawk on #git

  reply	other threads:[~2008-06-07 17: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 [this message]
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
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=m3y75hw3an.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=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).