Skip to content

getting rid of most "static struct lock_file"s

Martin Ågren git 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v15 patches 18 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5t/helper/test-write-cache: clean up lock-handlingt/helper/test-write-cache.c+5 -90 replies
2/5refs.c: do not die if locking fails in `write_pseudoref()`refs.c+2 -30 replies
3/5refs.c: do not die if locking fails in `delete_pseudoref()`refs.c+7 -40 replies
4/5lock_file: make function-local locks non-staticapply.c builtin/describe.c builtin/difftool.c +7 more+11 -110 replies
5/5lock_file: move static locks into functionsbuiltin/add.c builtin/mv.c builtin/read-tree.c +3 more+7 -110 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchStefan Beller
1/5
2/5R-b
3/5
4/5
5/5

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

Read the v2 thread

Cover letter [PATCH v2 0/5] getting rid of most "static struct lock_file"s

This is take two of my attempt at making almost all struct lock_files non-static. All patches have been equipped with more detailed commit messages. The only diff that has changed is patch 3/5, where I now take a small step towards gentle error-handling, rather than going in the opposite direction.

Thanks all for the valuable feedback on v1. I could have saved everyone some trouble by writing better commit messages from the start, and probably also by using --thread when formatting the patches...

Martin

Martin Ågren (5):
t/helper/test-write-cache: clean up lock-handling refs.c: do not die if locking fails in write_pseudoref() refs.c: do not die if locking fails in delete_pseudoref()
lock_file: make function-local locks non-static
lock_file: move static locks into functions

 t/helper/test-scrap-cache-tree.c |  4 ++--
 t/helper/test-write-cache.c      | 14 +++++---------
 apply.c                          |  2 +-
 builtin/add.c                    |  3 +--
 builtin/describe.c               |  2 +-
 builtin/difftool.c               |  2 +-
 builtin/gc.c                     |  2 +-
 builtin/merge.c                  |  4 ++--
 builtin/mv.c                     |  2 +-
 builtin/read-tree.c              |  3 +--
 builtin/receive-pack.c           |  2 +-
 builtin/rm.c                     |  3 +--
 bundle.c                         |  2 +-
 fast-import.c                    |  2 +-
 refs.c                           | 16 +++++++++-------
 refs/files-backend.c             |  2 +-
 rerere.c                         |  3 +--
 shallow.c                        |  2 +-
 18 files changed, 32 insertions(+), 38 deletions(-)
Signature · 1 line
2.17.0.411.g9fd64c8e46