Skip to content

Making reflog modifications part of the transactions API

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8refs.c: let fprintf handle the formattingrefs.c+2 -50 replies
2/8refs.c: rename the transaction functionsbranch.c builtin/commit.c builtin/fetch.c +9 more+126 -1252 replies
3/8refs.c: rename transaction.updates to transaction.ref_updatesrefs.c+7 -70 replies
4/8refs.c: add transaction function to append to the reflogrefs.c+92 -21 reply
5/8refs.c: add transaction function to delete the reflogrefs.c+61 -10 replies
6/8refs.c: use a reflog transaction when writing during expirerefs.c+35 -500 replies
7/8refs.c: rename log_ref_setup to create_reflogbuiltin/checkout.c refs.c refs.h+17 -210 replies
8/8refs.c: allow deleting refs with a broken sha1builtin/branch.c cache.h refs.c +1 more+23 -20 replies

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchJonathan Nieder
1/8
2/8R-b
3/8R-b
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] Making reflog modifications part of the transactions API

This goes on top of Michaels series. The idea of this series is make the reflogs being part of the transaction API, so it will be part of the contract of transaction_commit to either commit all the changes or none at all.

Currently when using the transaction API to change refs, also reflogs are changed. But the changes to the reflogs just happen as a side effect and not as part of the atomic part of changes we want to commit altogether.

Ronnie Sahlberg (3):
refs.c: use a reflog transaction when writing during expire refs.c: rename log_ref_setup to create_reflog refs.c: allow deleting refs with a broken sha1

Stefan Beller (5):
refs.c: let fprintf handle the formatting
refs.c: rename the transaction functions
refs.c: rename transaction.updates to transaction.ref_updates refs.c: add transaction function to append to the reflog refs.c: add transaction function to delete the reflog

 branch.c               |  13 +-
 builtin/branch.c       |   5 +-
 builtin/checkout.c     |   8 +-
 builtin/commit.c       |  10 +-
 builtin/fetch.c        |  12 +-
 builtin/receive-pack.c |  13 +-
 builtin/replace.c      |  10 +-
 builtin/tag.c          |  10 +-
 builtin/update-ref.c   |  26 ++--
 cache.h                |   7 +
 fast-import.c          |  22 +--
 refs.c                 | 359 ++++++++++++++++++++++++++++++++++---------------
 refs.h                 |  43 +++---
 sequencer.c            |  12 +-
 t/t3200-branch.sh      |   8 ++
 walker.c               |  10 +-
 16 files changed, 359 insertions(+), 209 deletions(-)
Signature · 1 line
2.2.0