Skip to content

ref-transactions-reflog

Ronnie Sahlberg git 4 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 posting 2/215 patches 0 repliesNew
  2. v3 Latest14 patches 4 repliesIn review
  3. v2 posting 1/214 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v111 patches0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14refs.c make ref_transaction_create a wrapper to ref_transaction_updaterefs.c refs.h+6 -141 reply
2/14refs.c: make ref_transaction_delete a wrapper for ref_transaction_updaterefs.c refs.h+6 -130 replies
3/14refs.c: rename the transaction functionsbranch.c builtin/commit.c builtin/fetch.c +9 more+141 -1400 replies
4/14refs.c: add a new update_type field to ref_updaterefs.c+21 -43 replies
5/14refs.c: add a function to append a reflog entry to a fdrefs.c+30 -180 replies
6/14lockfile.c: make hold_lock_file_for_append preserve meaningful errnocopy.c lockfile.c+19 -80 replies
7/14refs.c: add a transaction function to append a reflog entryrefs.c refs.h+112 -10 replies
8/14refs.c: add a flag to allow reflog updates to truncate the logrefs.c refs.h+24 -30 replies
9/14refs.c: only write reflog update if msg is non-NULLrefs.c refs.h+4 -20 replies
10/14refs.c: allow multiple reflog updates during a single transactionrefs.c+37 -90 replies
11/14reflog.c: use a reflog transaction when writing during expirebuiltin/reflog.c refs.c refs.h+39 -510 replies
12/14refs.c: rename log_ref_setup to create_reflogbuiltin/checkout.c refs.c refs.h+17 -210 replies
13/14refs.c: make unlock_ref/close_ref/commit_ref staticrefs.c refs.h+12 -210 replies
14/14refs.c: remove lock_any_ref_for_updaterefs.c refs.h+1 -160 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 00/14] ref-transactions-reflog

These patches can also be found at:
https://github.com/rsahlberg/git/tree/ref-transactions-reflog
This series is based on, and applies ontop of, the previous 48 patch long ref-transaction series that is now in origin/pu.

This series introduces support for reflog updates to the transaction framework and ends up re-factoring reflog.c to use a single atomic transaction for updating both the ref and its reflog.

With these changes we also reduce the number of places where we build and write a reflog entry to a single function which makes maintenance easier. Several functions that act on reflogs can now be made private to refs.c since we no longer need to export them.

This is version 3:
- Update and rebased ontop of the current ref-transactions series.

Ronnie Sahlberg (14):
refs.c make ref_transaction_create a wrapper to ref_transaction_update refs.c: make ref_transaction_delete a wrapper for
ref_transaction_update
refs.c: rename the transaction functions
refs.c: add a new update_type field to ref_update
refs.c: add a function to append a reflog entry to a fd lockfile.c: make hold_lock_file_for_append preserve meaningful errno refs.c: add a transaction function to append a reflog entry refs.c: add a flag to allow reflog updates to truncate the log refs.c: only write reflog update if msg is non-NULL refs.c: allow multiple reflog updates during a single transaction reflog.c: use a reflog transaction when writing during expire refs.c: rename log_ref_setup to create_reflog
refs.c: make unlock_ref/close_ref/commit_ref static refs.c: remove lock_any_ref_for_update

 branch.c               |  11 +-
 builtin/checkout.c     |   8 +-
 builtin/commit.c       |  14 +-
 builtin/fetch.c        |  12 +-
 builtin/receive-pack.c |  14 +-
 builtin/reflog.c       |  84 +++++------
 builtin/replace.c      |  10 +-
 builtin/tag.c          |  10 +-
 builtin/update-ref.c   |  22 +--
 copy.c                 |  20 ++-
 fast-import.c          |  22 +--
 lockfile.c             |   7 +-
 refs.c                 | 377 ++++++++++++++++++++++++++++++++++---------------
 refs.h                 | 109 +++++++-------
 sequencer.c            |  12 +-
 walker.c               |  16 +--
 16 files changed, 448 insertions(+), 300 deletions(-)
Signature · 1 line
2.0.0.467.g08c0633