Skip to content

use packed refs for ref-transactions

Ronnie Sahlberg git 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v15 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5refs.c: move reflog updates into its own functionrefs.c+36 -260 replies
2/5refs.c: write updates to packed refs when a transaction has more than one refbuiltin/clone.c refs.c t/t5516-fetch-push.sh+72 -290 replies
3/5remote.c: use a transaction for deleting refsbuiltin/remote.c+38 -310 replies
4/5refs.c: make repack_without_refs staticrefs.c refs.h+1 -40 replies
5/5refs.c: make the *_packed_refs functions staticrefs.c refs.h+4 -340 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/5] use packed refs for ref-transactions

This is a small patch series that continues ontop of the ref-transactions-rename series I posted earlier today.

This series expands the use of the packed refs file to make multi-ref updates much more atomic. Additionally it allows us to continue pushing external caller to use transactions instead of accessing (packed) refs directly which allows us to remove a whole bunch of refs functions from the public api.

After this series there is no real need any more to expose that packed refs even exist to external callers.

This series is built ontop of the previous series that was posted earlier today as :

Version 2:
-- Updated to address Junio's concerns

Ronnie Sahlberg (5):
refs.c: move reflog updates into its own function
refs.c: write updates to packed refs when a transaction has more than
one ref
remote.c: use a transaction for deleting refs
refs.c: make repack_without_refs static
refs.c: make the *_packed_refs functions static

 builtin/clone.c       |  16 ++++--
 builtin/remote.c      |  69 ++++++++++++----------
 refs.c                | 155 ++++++++++++++++++++++++++++++++------------------
 refs.h                |  33 -----------
 t/t5516-fetch-push.sh |   2 +-
 5 files changed, 151 insertions(+), 124 deletions(-)
Signature · 1 line
2.0.1.523.g0041e8a