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

Re: [PATCH 7/7] Make 'stg pull' use git-fetch and not git-pull.

From
Yann Dirson <ydirson@altern.org>
Date
Feb 1, 2007, 18:47 UTC
Message-ID
<20070201184705.GC5362@nan92-1-81-57-214-146.fbx.proxad.net>
In-Reply-To
<b0943d9e0701311544k22986545x351c04a8faab8814@mail.gmail.com>
On Wed, Jan 31, 2007 at 11:44:07PM +0000, Catalin Marinas wrote:
Show 13 quoted lines
> On 29/01/07, Yann Dirson <ydirson@altern.org> wrote:
> >We introduce a new pull-does-rebase setting, as companion to pullcmd.
> >This allows to use both pullcmd's that need a rebase (like git-fetch)
> >and pullcmd's that do not (like git-pull).
> 
> Thanks for the patches. I applied all of them but I have a question on this 
> one:
> 
> >+    if (config.get('stgit.pull-does-rebase')):
> >+        # FIXME!
> >+        reset(tree_id = rev_parse(repository))
> 
> Why the "FIXME" here? The alternative is switch() and it might be safer.

The last 2 patches, including the one with this FIXME, will need some work.

In this case, we should reset to the parent branch. It currently just works because traditionnaly we use refs/heads/origin from remote "origin", and "rev-parse origin" resolves to that branch.

Best regards,
-- 
Yann
Previous: Catalin Marinas
Message 10 of 10 in “StGIT, remotes, and parent”
  1. 0/7 StGIT, remotes, and parentYann Dirson, Jan 29, 2007
  2. 1/7 Make stgit.config use git-repo-config.Yann Dirson, Jan 29, 2007
  3. 2/7 Add caching to the new config class.Yann Dirson, Jan 29, 2007
  4. 3/7 Move identification of parent branch's remote def up into stack class.Yann Dirson, Jan 29, 2007
  5. 4/7 Allows extraction of information about remotes.Yann Dirson, Jan 29, 2007
  6. 5/7 Basic support for keeping a ref to the parent branch.Yann Dirson, Jan 29, 2007
  7. 6/7 Have 'stg branch --create' record parent information.Yann Dirson, Jan 29, 2007
  8. 7/7 Make 'stg pull' use git-fetch and not git-pull.Yann Dirson, Jan 29, 2007
  9. Catalin MarinasJan 31, 2007
  10. Yann DirsonFeb 1, 2007

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.