Skip to content

Use ref transactions part 3

Ronnie Sahlberg git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12wrapper.c: simplify warn_if_unremovablewrapper.c+6 -81 reply
2/12wrapper.c: add a new function unlink_or_msggit-compat-util.h wrapper.c+24 -04 replies
3/12refs.c: add an err argument to delete_ref_looserefs.c+6 -50 replies
4/12refs.c: pass the ref log message to _create/delete/update instead of _commitbranch.c builtin/commit.c builtin/fetch.c +9 more+52 -440 replies
5/12refs.c: pass NULL as *flags to read_ref_fullrefs.c+1 -13 replies
6/12refs.c: move the check for valid refname to lock_ref_sha1_basicrefs.c+5 -21 reply
7/12refs.c: call lock_ref_sha1_basic directly from commitrefs.c+6 -60 replies
8/12refs.c: pass a skip list to name_conflict_fnrefs.c+26 -150 replies
9/12refs.c: propagate any errno==ENOTDIR from _commit back to the callersrefs.c refs.h+21 -70 replies
10/12fetch.c: change s_update_ref to use a ref transactionbuiltin/fetch.c+23 -100 replies
11/12refs.c: make write_ref_sha1 staticrefs.c refs.h+8 -50 replies
12/12refs.c: fix handling of badly named refsbuiltin/blame.c builtin/branch.c builtin/clone.c +14 more+123 -764 replies

Reviews trailers per patch

3 of 12 patches have a Reviewed-by or Acked-by.

PatchJonathan Nieder
1/12
2/12
3/12
4/12R-b
5/12R-b
6/12
7/12R-b
8/12
9/12
10/12
11/12
12/12

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/12] Use ref transactions part 3

This is the third and final part of the original 48 patch series for basic transaction support.

It is used ontop of the previous two series :
* rs/ref-transaction-0 (2014-07-14) 19 commits
* rs/ref-transaction-1 (2014-07-16) 20 commits

This version implements some changes suggested by mhagger for the warn_if_removable changes.
It also adds a new patch "fix handling of badly named refs" that repairs the handling of badly named refs.

Ronnie Sahlberg (12):
wrapper.c: simplify warn_if_unremovable
wrapper.c: add a new function unlink_or_msg
refs.c: add an err argument to delete_ref_loose
refs.c: pass the ref log message to _create/delete/update instead of
_commit
refs.c: pass NULL as *flags to read_ref_full
refs.c: move the check for valid refname to lock_ref_sha1_basic refs.c: call lock_ref_sha1_basic directly from commit refs.c: pass a skip list to name_conflict_fn
refs.c: propagate any errno==ENOTDIR from _commit back to the callers fetch.c: change s_update_ref to use a ref transaction refs.c: make write_ref_sha1 static
refs.c: fix handling of badly named refs

 branch.c                |   4 +-
 builtin/blame.c         |   2 +-
 builtin/branch.c        |   6 +-
 builtin/clone.c         |   2 +-
 builtin/commit.c        |   4 +-
 builtin/fetch.c         |  36 ++++---
 builtin/fmt-merge-msg.c |   2 +-
 builtin/for-each-ref.c  |   6 +-
 builtin/log.c           |   3 +-
 builtin/receive-pack.c  |   5 +-
 builtin/remote.c        |   5 +-
 builtin/replace.c       |   4 +-
 builtin/show-branch.c   |   6 +-
 builtin/tag.c           |   4 +-
 builtin/update-ref.c    |  13 +--
 bundle.c                |   2 +-
 cache.h                 |  18 ++--
 fast-import.c           |   8 +-
 git-compat-util.h       |   6 ++
 http-backend.c          |   3 +-
 reflog-walk.c           |   3 +-
 refs.c                  | 247 +++++++++++++++++++++++++++++++-----------------
 refs.h                  |  17 ++--
 remote.c                |   6 +-
 sequencer.c             |   6 +-
 transport-helper.c      |   2 +-
 transport.c             |   5 +-
 walker.c                |   5 +-
 wrapper.c               |  30 ++++--
 29 files changed, 291 insertions(+), 169 deletions(-)
Signature · 1 line
2.0.1.527.gc6b782e