Skip to content

nd/clone-detached rebase onto nd/clone-single-branch

Nguyễn Thái Ngọc Duy git 3 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest10 patches 0 repliesNew
  2. v410 patches 5 repliesSuperseded
  3. v310 patches 9 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10t5601: add missing && cascadet/t5601-clone.sh+3 -30 replies
2/10clone: write detached HEAD in bare repositoriesbuiltin/clone.c t/t5601-clone.sh+27 -70 replies
3/10clone: factor out checkout codebuiltin/clone.c+58 -430 replies
4/10clone: factor out HEAD update codebuiltin/clone.c+24 -170 replies
5/10clone: factor out remote ref writingbuiltin/clone.c+25 -140 replies
6/10clone: delay cloning until after remote HEAD checkingbuiltin/clone.c transport.c+31 -280 replies
7/10clone: --branch=<branch> always means refs/heads/<branch>builtin/clone.c+16 -140 replies
8/10clone: refuse to clone if --branch points to bogus refbuiltin/clone.c t/t5500-fetch-pack.sh t/t5706-clone-branch.sh+6 -210 replies
9/10clone: allow --branch to take a tagDocumentation/git-clone.txt builtin/clone.c t/t5500-fetch-pack.sh +1 more+46 -30 replies
10/10clone: print advice on checking out detached HEADadvice.c advice.h builtin/checkout.c +1 more+20 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 00/10] nd/clone-detached rebase onto nd/clone-single-branch

There are a few more changes than just a simple rebase so that "git clone --depth=1 --branch=tag" also works.

Nguyễn Thái Ngọc Duy (10):
t5601: add missing && cascade
clone: write detached HEAD in bare repositories
clone: factor out checkout code
clone: factor out HEAD update code
clone: factor out remote ref writing
clone: delay cloning until after remote HEAD checking
clone: --branch=<branch> always means refs/heads/<branch>
clone: refuse to clone if --branch points to bogus ref
clone: allow --branch to take a tag
clone: print advice on checking out detached HEAD

 Documentation/git-clone.txt |    5 +-
 advice.c                    |   14 ++
 advice.h                    |    1 +
 builtin/checkout.c          |   16 +--
 builtin/clone.c             |  297 +++++++++++++++++++++++++------------------
 t/t5500-fetch-pack.sh       |   22 ++-
 t/t5601-clone.sh            |   40 +++++-
 t/t5706-clone-branch.sh     |    8 +-
 transport.c                 |    5 +-
 9 files changed, 249 insertions(+), 159 deletions(-)
Signature · 1 line
1.7.3.1.256.g2539c.dirty