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

Re: [PATCH] Explicitly add the default "git pull" behaviour to .git/config on clone

From
JWJosef Weidendorfer <josef.weidendorfer@gmx.de>
Date
Dec 6, 2006, 17:00 UTC
Message-ID
<200612061800.17087.Josef.Weidendorfer@gmx.de>
In-Reply-To
<200612061207.23437.andyparkins@gmail.com>
On Wednesday 06 December 2006 13:07, Andy Parkins wrote:
> The [branch "master"] section is such that there is no change to the
> functionality of git-pull, but that functionality is now explicitly
> documented.

Nice. However, changing "git-clone" for this is an adhoc solution and looks wrong.

Branching off a local development branch for a tracking branch is the job of git-branch. So first, git-branch should be called from git-clone to do this setup.

And git-branch should be told to change the configuration of default behavior of git-pull, whenever it sees that you are branching off from a branch tracking a remote one. I even would go so far to setup a default "git-pull" action even for branching off from local branches, by setting "branch.<newbranch>.remote = ." to merge from local "upstream".

Similar, "git-checkout -b <newbranch>" should call "git-branch" for branch creation, too.

Previous: Peter BaumannNext: Jakub Narebski
Message 6 of 15 in “Explicitly add the default "git pull" behaviour to .git/config on clone”
  1. Explicitly add the default "git pull" behaviour to .git/config on cloneAndy Parkins, Dec 6, 2006
  2. Johannes SchindelinDec 6, 2006
  3. Jakub NarebskiDec 6, 2006
  4. Andy ParkinsDec 6, 2006
  5. Peter BaumannDec 6, 2006
  6. Josef WeidendorferDec 6, 2006
  7. Jakub NarebskiDec 6, 2006
  8. Johannes SchindelinDec 6, 2006
  9. Josef WeidendorferDec 7, 2006
  10. Junio C HamanoDec 7, 2006
  11. Josef WeidendorferDec 7, 2006
  12. Johannes SchindelinDec 7, 2006
  13. Josef WeidendorferDec 7, 2006
  14. Jakub NarebskiDec 8, 2006
  15. Aneesh Kumar K.VDec 7, 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.