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

[PATCH v2 0/6] Default remote

From
marcnarc@xiplink.com <marcnarc@xiplink.com>
Date
Jul 11, 2012, 15:33 UTC
Message-ID
<1342020841-24368-1-git-send-email-marcnarc@xiplink.com>

Incorporated feedback on the first version of this series[1], and also added documentation updates.

Note that the documentation changes include 4 minor grammatical fixes (verb tenses, added a "the" in a couple fo places).

I also added Phil's "git push" scenario to patch #2's message, rather than putting it in the documentation as I'd planned. Explaining the behavior change in the commit message felt more natural.

The specific differences from v1 are:
Patch #1 (Rename remote.c's default_remote_name static variables.):
  * Expanded the commit message to explain the choice of
    "effective_remote_name".
Patch #2 (Teach remote.c about the remote.default configuration setting.):
  * Added documentation updates.
  * Commit message now describes change in default "git push" behavior.
  * Moved new remote_get_default_name() and remote_count() functions
    to patch #3.
Patch #3 (Teach "git remote" about remote.default.):
  * (Was patch #4 in v1 of this series.)
  * Documented changes to "git remote".
  * The remote_get_default_name() and remote_count() functions are
    now added to remote.[ch] here, with proper declarations.
  * Added a test to ensure that renaming the "origin" remote still
    properly sets remote.default in repos created with an older
    version of git.
Patch #4 (Teach clone to set remote.default.):
  * (Was patch #3 in v1 of this series.)
  * Commit message now justifies changes to "git clone".
Patches 5 & 6 are unchanged.
		M.
[1] http://thread.gmane.org/gmane.comp.version-control.git/201065
Marc Branchaud (6):
      Rename remote.c's default_remote_name static variables.
      Teach remote.c about the remote.default configuration setting.
      Teach "git remote" about remote.default.
      Teach clone to set remote.default.
      Test that plain "git fetch" uses remote.default when on a detached HEAD.
      Teach get_default_remote to respect remote.default.
 Documentation/config.txt           |  8 ++++
 Documentation/git-pull.txt         |  6 ++-
 Documentation/git-push.txt         |  8 +++-
 Documentation/git-remote.txt       | 32 ++++++++++++++--
 Documentation/pull-fetch-param.txt |  6 +++
 builtin/clone.c                    |  2 +
 builtin/remote.c                   | 29 +++++++++++++++
 git-parse-remote.sh                |  5 +--
 remote.c                           | 34 +++++++++++++----
 remote.h                           |  2 +
 t/t5505-remote.sh                  | 76 ++++++++++++++++++++++++++++++++++++++
 t/t5510-fetch.sh                   | 17 +++++++++
 t/t5512-ls-remote.sh               |  8 +++-
 t/t5528-push-default.sh            |  4 +-
 t/t5601-clone.sh                   | 10 +++++
 t/t5702-clone-options.sh           |  7 +++-
 t/t7400-submodule-basic.sh         | 21 +++++++++++
 17 files changed, 253 insertions(+), 22 deletions(-)
Next: marcnarc@xiplink.com
Message 1 of 17 in “Default remote”
  1. 0/6 Default remotemarcnarc@xiplink.com, Jul 11, 2012
  2. 1/6 Rename remote.c's default_remote_name static variables.marcnarc@xiplink.com, Jul 11, 2012
  3. 2/6 Teach remote.c about the remote.default configuration setting.marcnarc@xiplink.com, Jul 11, 2012
  4. Junio C HamanoJul 11, 2012
  5. Marc BranchaudJul 11, 2012
  6. Junio C HamanoJul 11, 2012
  7. Marc BranchaudJul 13, 2012
  8. Junio C HamanoJul 13, 2012
  9. 3/6 Teach "git remote" about remote.default.marcnarc@xiplink.com, Jul 11, 2012
  10. Junio C HamanoJul 11, 2012
  11. Marc BranchaudJul 11, 2012
  12. Junio C HamanoJul 11, 2012
  13. Marc BranchaudJul 13, 2012
  14. 4/6 Teach clone to set remote.default.marcnarc@xiplink.com, Jul 11, 2012
  15. 5/6 Test that plain "git fetch" uses remote.default when on a detached HEAD.marcnarc@xiplink.com, Jul 11, 2012
  16. 6/6 Teach get_default_remote to respect remote.default.marcnarc@xiplink.com, Jul 11, 2012
  17. Junio C HamanoJul 11, 2012

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.