Skip to content

ref transactions part 2

Ronnie Sahlberg git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20refs.c: change ref_transaction_create to do error checking and return statusbuiltin/update-ref.c refs.c refs.h+56 -140 replies
2/20refs.c: update ref_transaction_delete to check for error and return statusbuiltin/update-ref.c refs.c refs.h+22 -110 replies
3/20refs.c: make ref_transaction_begin take an err argumentbuiltin/update-ref.c refs.c refs.h+3 -30 replies
4/20refs.c: add transaction.status and track OPEN/CLOSED/ERRORrefs.c+38 -10 replies
5/20tag.c: use ref transactions when doing updatesbuiltin/tag.c+9 -60 replies
6/20replace.c: use the ref transaction functions for updatesbuiltin/replace.c+9 -60 replies
7/20commit.c: use ref transactions for updatesbuiltin/commit.c+11 -130 replies
8/20sequencer.c: use ref transactions for all ref updatessequencer.c+18 -90 replies
9/20fast-import.c: change update_branch to use ref transactionsfast-import.c+14 -100 replies
10/20branch.c: use ref transaction for all ref updatesbranch.c+16 -140 replies
11/20refs.c: change update_ref to use a transactionrefs.c+24 -40 replies
12/20receive-pack.c: use a reference transaction for updating the refsbuiltin/receive-pack.c+63 -330 replies
13/20fast-import.c: use a ref transaction when dumping tagsfast-import.c+23 -60 replies
14/20walker.c: use ref transaction for ref updateswalker.c+35 -240 replies
15/20refs.c: make lock_ref_sha1 staticrefs.c refs.h+1 -70 replies
16/20refs.c: remove the update_ref_lock functionrefs.c+6 -240 replies
17/20refs.c: remove the update_ref_write functionrefs.c+9 -260 replies
18/20refs.c: remove lock_ref_sha1refs.c+5 -100 replies
19/20refs.c: make prune_ref use a transaction to delete the refrefs.c refs.h+32 -90 replies
20/20refs.c: make delete_ref use a transactionrefs.c+13 -210 replies

Reviews trailers per patch

18 of 20 patches have a Reviewed-by or Acked-by.

PatchJonathan Nieder
1/20R-b
2/20R-b
3/20R-b
4/20
5/20R-b
6/20R-b
7/20R-b
8/20R-b
9/20R-b
10/20R-b
11/20R-b
12/20
13/20R-b
14/20R-b
15/20R-b
16/20R-b
17/20R-b
18/20R-b
19/20R-b
20/20R-b

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 00/20] ref transactions part 2

This is the next 20 patches from my originally big patch series and follow the previous 19 patches that is now in juns tree.
These patches were numbered 20-39 in the original 48-patch series.

Changes since these patches were in the original series:

- Addressing concerns from mhagger's review

Ronnie Sahlberg (20):
refs.c: change ref_transaction_create to do error checking and return
status
refs.c: update ref_transaction_delete to check for error and return
status
refs.c: make ref_transaction_begin take an err argument refs.c: add transaction.status and track OPEN/CLOSED/ERROR tag.c: use ref transactions when doing updates
replace.c: use the ref transaction functions for updates commit.c: use ref transactions for updates
sequencer.c: use ref transactions for all ref updates fast-import.c: change update_branch to use ref transactions branch.c: use ref transaction for all ref updates
refs.c: change update_ref to use a transaction receive-pack.c: use a reference transaction for updating the refs fast-import.c: use a ref transaction when dumping tags walker.c: use ref transaction for ref updates
refs.c: make lock_ref_sha1 static
refs.c: remove the update_ref_lock function
refs.c: remove the update_ref_write function
refs.c: remove lock_ref_sha1
refs.c: make prune_ref use a transaction to delete the ref refs.c: make delete_ref use a transaction

 branch.c               |  30 +++---
 builtin/commit.c       |  24 +++--
 builtin/receive-pack.c |  96 +++++++++++++-------
 builtin/replace.c      |  15 +--
 builtin/tag.c          |  15 +--
 builtin/update-ref.c   |  11 ++-
 fast-import.c          |  53 +++++++----
 refs.c                 | 242 ++++++++++++++++++++++++++++---------------------
 refs.h                 |  78 ++++++++++++----
 sequencer.c            |  27 ++++--
 walker.c               |  59 +++++++-----
 11 files changed, 403 insertions(+), 247 deletions(-)
Signature · 1 line
2.0.1.442.g7fe6834.dirty