Skip to content

Server side automatic tag following

Shawn O. Pearce git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 9 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3git-pack-objects: Automatically pack annotated tags if object was packedDocumentation/git-pack-objects.txt builtin-pack-objects.c t/t5305-auto-include-tag.sh+111 -20 replies
2/3Teach fetch-pack/upload-pack about --auto-include-tagDocumentation/git-fetch-pack.txt builtin-fetch-pack.c fetch-pack.h +1 more+24 -60 replies
3/3Teach git-fetch to exploit server side automatic tag followingbuiltin-fetch.c t/t5503-tagfollow.sh transport.c +1 more+37 -04 replies
3/3Make "git-remote rm" delete refs acccording to fetch specsbuiltin-remote.c+54 -145 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] Server side automatic tag following

This series replaces my prior one from this evening based on Nico's suggestion to use "--auto-include-tag" as the option name. Its effectively the same series, but every commit is different due to the change in option name and protocol extension.

For those new to the series, it avoids the second connection needed to download new annotated tags. Instead the server side automatically sends the tag if the client signals it would do automated tag following. This lightens the load on the server and on the client as its one less connection required to per client requesting updates.

  1)  git-pack-objects: Automatically pack annotated tags if object was packed
  2)  Teach fetch-pack/upload-pack about --auto-include-tag
  3)  Teach git-fetch to exploit server side automatic tag following
 Documentation/git-fetch-pack.txt   |    8 +++-
 Documentation/git-pack-objects.txt |    5 ++
 builtin-fetch-pack.c               |    9 +++-
 builtin-fetch.c                    |    3 +
 builtin-pack-objects.c             |   24 +++++++++-
 fetch-pack.h                       |    3 +-
 t/t5305-auto-include-tag.sh        |   84 ++++++++++++++++++++++++++++++++++++
 t/t5503-tagfollow.sh               |   26 +++++++++++
 transport.c                        |    5 ++
 transport.h                        |    3 +
 upload-pack.c                      |   10 +++-
 11 files changed, 172 insertions(+), 8 deletions(-)
Signature · 1 line
Shawn.