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

[PATCH v3 0/2] git-clone: Add new option --branch to override initial branch

From
Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
Date
Mar 27, 2009, 17:45 UTC
Message-ID
<1238175913-19175-1-git-send-email-tor.arne.vestbo@nokia.com>

This mini-series is a continuation of the efforts to add add a new option to git clone to allow overriding the initial branch.

The previous patch (v2) and discussion can be found here:
  http://thread.gmane.org/gmane.comp.version-control.git/111967/focus=111983
With Junios' comments to v2 of my patch here:
  http://thread.gmane.org/gmane.comp.version-control.git/111967/focus=111983

I believe I've covered all the issues in the review, but if there's still issues please let me know and I'll rework the patch.

Best,
Tor Arne
Tor Arne Vestbø (2):
  Move find_ref_by_name_abbrev to refs.c so it can be used globally
  git-clone: Add new option --branch to override initial branch
 Documentation/git-clone.txt |    5 +++
 builtin-clone.c             |   71 +++++++++++++++++++++++++-----------------
 cache.h                     |    1 +
 refs.c                      |   10 ++++++
 remote.c                    |   10 ------
 t/t5702-clone-options.sh    |   70 ++++++++++++++++++++++++++++++++++++++++--
 6 files changed, 125 insertions(+), 42 deletions(-)
Next: Tor Arne Vestbø
Message 1 of 3 in “git-clone: Add new option --branch to override initial branch”
  1. 0/2 git-clone: Add new option --branch to override initial branchTor Arne Vestbø, Mar 27, 2009
  2. 1/2 Move find_ref_by_name_abbrev to refs.c so it can be used globallyTor Arne Vestbø, Mar 27, 2009
  3. 2/2 git-clone: Add new option --branch to override initial branchTor Arne Vestbø, Mar 27, 2009

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.