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

[PATCH 0/5] [DRAFT] StGIT, remotes, and parent information

From
Yann Dirson <ydirson@altern.org>
Date
Jan 27, 2007, 11:21 UTC
Message-ID
<20070127104024.16475.81445.stgit@gandelf.nowhere.earth>

Although they are not finished, it may be useful to give some context to current threads to publish a snapshot of what I'm working on, so here it is.

1/5 Move identification of parent branch's remote def up into stack class.
Mostly code reorg.
2/5 Allows extraction of information about remotes.

Introduces a handful of functions to get informations about remotes in the repository. Makes use of remote.<branch>.fetch multi-valued config entry.

3/5 Basic support for keeping a ref to the parent branch.

Currently relies on the failed assumption that config.set() does what it sounds, so rely instead on a rewritten config.py.

That's why I'd rather rewrite it rapidly without a dictionnary, at least as a first step - we can make the implementation better afterwards, but first make it work. Indeed I was originally only working on the 5th patch of this stack, and all this is already a bit beyond of what I was envisonning...

4/5 Have 'stg branch --create' record parent information.

Putting this all together. Would also need to do something similar in 'stg clone' and possibly other places, so some code surely needs to be factorized.

5/5 Make 'stg pull' use git-fetch and not git-pull.

Unfinished. Git-fetch takes care of using the remote information. Still have to use the previous work to find out the parent branch name to rebase onto.

Best regards,
-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>
Next: Yann Dirson
Message 1 of 6 in “[DRAFT] StGIT, remotes, and parent information”
  1. 0/5 [DRAFT] StGIT, remotes, and parent informationYann Dirson, Jan 27, 2007
  2. 1/5 Move identification of parent branch's remote def up into stack class.Yann Dirson, Jan 27, 2007
  3. 2/5 Allows extraction of information about remotes.Yann Dirson, Jan 27, 2007
  4. 3/5 Basic support for keeping a ref to the parent branch.Yann Dirson, Jan 27, 2007
  5. 4/5 Have 'stg branch --create' record parent information.Yann Dirson, Jan 27, 2007
  6. 5/5 Make 'stg pull' use git-fetch and not git-pull.Yann Dirson, Jan 27, 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.