Skip to content

refs backend

David Turner git 8 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest33 patches 23 repliesIn review
  2. v632 patches 23 repliesSuperseded
  3. v5 posting 2/227 patches 20 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v5 posting 1/226 patches5 repliesSuperseded
v426 patches8 repliesSuperseded
v344 patches25 repliesSuperseded
v243 patches46 repliesSuperseded
v142 of 43 patches11 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/33setup: call setup_git_directory_gently before accessing refsbuiltin/grep.c builtin/log.c builtin/shortlog.c +4 more+12 -64 replies
2/33refs: move head_ref{,_submodule} to the common coderefs.c refs/files-backend.c+23 -280 replies
3/33refs: move for_each_*ref* functions into common coderefs.c refs/files-backend.c refs/refs-internal.h+66 -570 replies
4/33files-backend: break out ref readingrefs/files-backend.c+159 -1063 replies
5/33refs: move resolve_ref_unsafe into common coderefs.c refs/files-backend.c refs/refs-internal.h+114 -1110 replies
6/33refs: add a backend method structure with transaction functionsrefs.c refs.h refs/files-backend.c +1 more+67 -20 replies
7/33refs: add methods for misc ref operationsrefs.c refs/files-backend.c refs/refs-internal.h+82 -150 replies
8/33refs: add method for do_for_each_refrefs.c refs/files-backend.c refs/refs-internal.h+18 -20 replies
9/33refs: reduce the visibility of do_for_each_ref()refs.c refs/refs-internal.h+11 -142 replies
10/33refs: add do_for_each_per_worktree_refrefs/files-backend.c refs/refs-internal.h+23 -00 replies
11/33refs: add methods for reflogrefs.c refs/files-backend.c refs/refs-internal.h+97 -120 replies
12/33refs: add method for initial ref transaction commitrefs.c refs/files-backend.c refs/refs-internal.h+10 -20 replies
13/33refs: add method for delete_refsrefs.c refs/files-backend.c refs/refs-internal.h+9 -10 replies
14/33refs: add methods to init refs dbbuiltin/init-db.c refs.c refs.h +2 more+35 -102 replies
15/33refs: add method to rename refsrefs.c refs/files-backend.c refs/refs-internal.h+16 -10 replies
16/33refs: handle non-normal ref renamesrefs.c+11 -10 replies
17/33refs: make lock genericrefs/files-backend.c refs/refs-internal.h+17 -141 reply
18/33refs: move duplicate check to common coderefs.c refs/files-backend.c refs/refs-internal.h+73 -540 replies
19/33refs: allow log-only updatesrefs/files-backend.c refs/refs-internal.h+17 -52 replies
20/33refs: don't dereference on renamerefs/files-backend.c t/t3200-branch.sh+18 -60 replies
21/33refs: on symref reflog expire, lock symref not referrentrefs/files-backend.c t/t1410-reflog.sh+12 -10 replies
22/33refs: resolve symbolic refs firstrefs.c refs/files-backend.c refs/refs-internal.h+148 -660 replies
23/33refs: always handle non-normal refs in files backendrefs.c+90 -200 replies
24/33init: allow alternate ref strorage to be set for new reposDocumentation/git-init-db.txt Documentation/git-init.txt builtin/init-db.c +7 more+118 -130 replies
25/33refs: check submodules' ref storage configrefs.c refs.h refs/files-backend.c+57 -70 replies
26/33clone: allow ref storage backend to be set for cloneDocumentation/git-clone.txt builtin/clone.c builtin/submodule--helper.c +2 more+25 -10 replies
27/33svn: learn ref-storage argumentcontrib/completion/git-completion.bash git-svn.perl+6 -20 replies
28/33refs: register ref storage backendsbuiltin/init-db.c refs.c refs.h+23 -40 replies
29/33setup: configure ref storage on setupconfig.c setup.c+5 -04 replies
30/33refs: break out resolve_ref_unsafe_submodulerefs.c refs/files-backend.c refs/refs-internal.h+47 -212 replies
31/33refs: add LMDB refs storage backend.gitignore Documentation/config.txt Documentation/git-clone.txt +9 more+2083 -23 replies
32/33refs: tests for lmdb backendt/t1460-refs-lmdb-backend.sh t/t1470-refs-lmdb-backend-reflog.sh t/t1480-refs-lmdb-submodule.sh +1 more+1554 -00 replies
33/33tests: add ref-storage argumentt/README t/lib-submodule-update.sh t/lib-t6000.sh +60 more+370 -1850 replies

Reviews trailers per patch

None of the 33 patches has a Reviewed-by or Acked-by.

PatchDennis KaarsemakerDuy Nguyen
1/33
2/33
3/33
4/33Helped-by
5/33
6/33
7/33
8/33
9/33
10/33
11/33
12/33
13/33
14/33
15/33
16/33
17/33
18/33
19/33
20/33
21/33
22/33
23/33
24/33
25/33
26/33
27/33
28/33
29/33
30/33
31/33
32/33Helped-by
33/33

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

Read the v7 thread

Cover letter [PATCH v7 00/33] refs backend

This one has suggestions from Peff, SZEDER Gábor, Duy Nguyen, and fixups from Junio.

The major changes are:

* The new patch "call setup_git_directory_gently before accessing refs" -- this is necessary in order to move "setup: configure ref storage config on startup" from config to setup.

* "setup: configure ref storage config on startup" is now much shorter.

In addition, there are some minor fixups to remove variable shadowing in the lmdb code and to improve the design of the set_ref_storage_backend family of functions.

David Turner (30):
setup: call setup_git_directory_gently before accessing refs
refs: move head_ref{,_submodule} to the common code
refs: move for_each_*ref* functions into common code
files-backend: break out ref reading
refs: move resolve_ref_unsafe into common code
refs: add method for do_for_each_ref
refs: add do_for_each_per_worktree_ref
refs: add methods for reflog
refs: add method for initial ref transaction commit
refs: add method for delete_refs
refs: add methods to init refs db
refs: add method to rename refs
refs: handle non-normal ref renames
refs: make lock generic
refs: move duplicate check to common code
refs: allow log-only updates
refs: don't dereference on rename
refs: on symref reflog expire, lock symref not referrent
refs: resolve symbolic refs first
refs: always handle non-normal refs in files backend
init: allow alternate ref strorage to be set for new repos
refs: check submodules' ref storage config
clone: allow ref storage backend to be set for clone
svn: learn ref-storage argument
refs: register ref storage backends
setup: configure ref storage config on startup
refs: break out resolve_ref_unsafe_submodule
refs: add LMDB refs storage backend
refs: tests for lmdb backend
tests: add ref-storage argument

Ramsay Jones (1):
refs: reduce the visibility of do_for_each_ref()

Ronnie Sahlberg (2):
refs: add a backend method structure with transaction functions
refs: add methods for misc ref operations

 .gitignore                                     |    1 +
 Documentation/config.txt                       |    9 +
 Documentation/git-clone.txt                    |    6 +
 Documentation/git-init-db.txt                  |    2 +-
 Documentation/git-init.txt                     |    8 +-
 Documentation/technical/refs-lmdb-backend.txt  |   61 +
 Documentation/technical/repository-version.txt |    7 +
 Makefile                                       |   12 +
 builtin/clone.c                                |    5 +
 builtin/grep.c                                 |    1 +
 builtin/init-db.c                              |   55 +-
 builtin/log.c                                  |    2 +-
 builtin/shortlog.c                             |    7 +-
 builtin/submodule--helper.c                    |    2 +-
 cache.h                                        |    2 +
 config.c                                       |    1 +
 configure.ac                                   |   33 +
 contrib/completion/git-completion.bash         |    6 +-
 contrib/workdir/git-new-workdir                |    3 +
 git-submodule.sh                               |   13 +
 git-svn.perl                                   |    6 +-
 git.c                                          |    2 +-
 path.c                                         |   30 +-
 refs.c                                         |  631 +++++++-
 refs.h                                         |   16 +
 refs/files-backend.c                           |  686 ++++-----
 refs/lmdb-backend.c                            | 1886 ++++++++++++++++++++++++
 refs/refs-internal.h                           |  123 +-
 setup.c                                        |   29 +
 shortlog.h                                     |    2 +-
 t/README                                       |    6 +
 t/lib-submodule-update.sh                      |   15 +-
 t/lib-t6000.sh                                 |    7 +-
 t/t0001-init.sh                                |   25 +
 t/t0008-ignores.sh                             |    2 +-
 t/t0062-revision-walking.sh                    |    6 +
 t/t1021-rerere-in-workdir.sh                   |    6 +
 t/t1200-tutorial.sh                            |    8 +-
 t/t1302-repo-version.sh                        |    6 +
 t/t1305-config-include.sh                      |   17 +-
 t/t1400-update-ref.sh                          |    6 +
 t/t1401-symbolic-ref.sh                        |   17 +-
 t/t1404-update-ref-df-conflicts.sh             |    8 +-
 t/t1410-reflog.sh                              |   16 +
 t/t1430-bad-ref-name.sh                        |    6 +
 t/t1450-fsck.sh                                |   12 +-
 t/t1460-refs-lmdb-backend.sh                   | 1109 ++++++++++++++
 t/t1470-refs-lmdb-backend-reflog.sh            |  359 +++++
 t/t1480-refs-lmdb-submodule.sh                 |   85 ++
 t/t1506-rev-parse-diagnosis.sh                 |    4 +-
 t/t2013-checkout-submodule.sh                  |    2 +-
 t/t2105-update-index-gitfile.sh                |    4 +-
 t/t2107-update-index-basic.sh                  |    6 +-
 t/t2201-add-update-typechange.sh               |    4 +-
 t/t3001-ls-files-others-exclude.sh             |    2 +-
 t/t3010-ls-files-killed-modified.sh            |    4 +-
 t/t3040-subprojects-basic.sh                   |    4 +-
 t/t3050-subprojects-fetch.sh                   |    2 +-
 t/t3200-branch.sh                              |   84 +-
 t/t3210-pack-refs.sh                           |    7 +
 t/t3211-peel-ref.sh                            |    6 +
 t/t3308-notes-merge.sh                         |    2 +-
 t/t3404-rebase-interactive.sh                  |    2 +-
 t/t3600-rm.sh                                  |    2 +-
 t/t3800-mktag.sh                               |    4 +-
 t/t3903-stash.sh                               |    2 +-
 t/t4010-diff-pathspec.sh                       |    2 +-
 t/t4020-diff-external.sh                       |    2 +-
 t/t4027-diff-submodule.sh                      |    2 +-
 t/t4035-diff-quiet.sh                          |    2 +-
 t/t4255-am-submodule.sh                        |    2 +-
 t/t5000-tar-tree.sh                            |    3 +-
 t/t5304-prune.sh                               |    2 +-
 t/t5312-prune-corruption.sh                    |   11 +-
 t/t5500-fetch-pack.sh                          |   10 +-
 t/t5510-fetch.sh                               |   30 +-
 t/t5526-fetch-submodules.sh                    |    4 +-
 t/t5527-fetch-odd-refs.sh                      |    7 +
 t/t5537-fetch-shallow.sh                       |    7 +
 t/t5700-clone-reference.sh                     |   42 +-
 t/t6001-rev-list-graft.sh                      |    3 +-
 t/t6010-merge-base.sh                          |    2 +-
 t/t6050-replace.sh                             |    4 +-
 t/t6120-describe.sh                            |    6 +-
 t/t6301-for-each-ref-errors.sh                 |   12 +-
 t/t7201-co.sh                                  |    2 +-
 t/t7300-clean.sh                               |   25 +-
 t/t7400-submodule-basic.sh                     |   22 +-
 t/t7402-submodule-rebase.sh                    |    2 +-
 t/t7405-submodule-merge.sh                     |   10 +-
 t/t9104-git-svn-follow-parent.sh               |    3 +-
 t/t9115-git-svn-dcommit-funky-renames.sh       |    2 +-
 t/t9350-fast-export.sh                         |    6 +-
 t/t9902-completion.sh                          |    4 +-
 t/t9903-bash-prompt.sh                         |    2 +-
 t/test-lib-functions.sh                        |   53 +-
 t/test-lib.sh                                  |   12 +
 test-match-trees.c                             |    2 +
 test-refs-lmdb-backend.c                       |   66 +
 test-revision-walking.c                        |    2 +
 100 files changed, 5265 insertions(+), 605 deletions(-)
 create mode 100644 Documentation/technical/refs-lmdb-backend.txt
 create mode 100644 refs/lmdb-backend.c
 create mode 100755 t/t1460-refs-lmdb-backend.sh
 create mode 100755 t/t1470-refs-lmdb-backend-reflog.sh
 create mode 100755 t/t1480-refs-lmdb-submodule.sh
 create mode 100644 test-refs-lmdb-backend.c
Signature · 1 line
2.4.2.767.g62658d5-twtrsrc