git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: stg pull/rebase

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 7, 2008, 17:41 UTC
Message-ID
<m3y75hw3an.fsf@localhost.localdomain>
In-Reply-To
<20080607172202.GA5179@diana.vm.bytemark.co.uk>
Karl Hasselström <kha@treskal.com> writes:
Show 8 quoted lines
> 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".
Show 8 quoted lines
>   * 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
Previous: Karl HasselströmNext: Karl Hasselström
Message 2 of 9 in “stg pull/rebase”
  1. Karl HasselströmJun 7, 2008
  2. Jakub NarebskiJun 7, 2008
  3. Karl HasselströmJun 7, 2008
  4. Catalin MarinasJun 10, 2008
  5. Karl HasselströmJun 10, 2008
  6. Catalin MarinasJun 10, 2008
  7. Karl HasselströmJun 11, 2008
  8. Catalin MarinasJun 11, 2008
  9. Karl HasselströmJun 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.