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

Re: Tracking a branch using StGIT

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 15, 2006, 12:09 UTC
Message-ID
<eee551$mtc$1@sea.gmane.org>
In-Reply-To
<64de5c8b0609150459i2e678a02r86bb678ea420054f@mail.gmail.com>
Rajkumar S wrote:
Show 9 quoted lines
> On 9/15/06, Jakub Narebski <jnareb@gmail.com> wrote:
> 
>> git pull is git fetch + merge of first head in remotes file with _current_
>> branch.
> 
> I was under the impression that git pull is git pull + merge of
> corresponding branches in remotes files. ie master -> origin and
> RELENG_1 -> RELENG_1. Is such a pull possible, for all lines in
> remotes file?
GIT-PULL(1)
DESCRIPTION
       Runs  git-fetch with the given parameters, and calls git-merge to merge the
       retrieved head(s) into the current branch.

Besides in remotes file you have only specified which remote branch is tracked by which local branch. Additionally all but first are marked as not-for-merge. There is no place for default branch to merge with.

There was some discussion about moving remotes information into config file, including marking tracking branches as read-only, marking default branch to merge (or marking branch as for-merge/not-for-merge), marking branch as of not fast-forwarding type (like 'pu' in git.git) on the _server_ side etc. But it petered out, unfortunately.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Rajkumar SNext: Rajkumar S
Message 9 of 10 in “Tracking a branch using StGIT”
  1. Rajkumar SSep 15, 2006
  2. Catalin MarinasSep 15, 2006
  3. Andy WhitcroftSep 15, 2006
  4. SantiSep 15, 2006
  5. Rajkumar SSep 15, 2006
  6. Rajkumar SSep 15, 2006
  7. Jakub NarebskiSep 15, 2006
  8. Rajkumar SSep 15, 2006
  9. Jakub NarebskiSep 15, 2006
  10. Rajkumar SSep 15, 2006

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.