[PATCH v3 00/44] alternate refs backends

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This version of the patch set includes the following changes:
1. Numerous formatting and style updates.  Thanks for Michael Haggerty to
pointing these out; remaining errors are of course my own.

2. Fixed warnings.  Thanks to Michael Haggerty, Michael Blume, and
Torsten Bögershausen for pointing these out.

3. I reworded some commit messages.

4. Made tests work with LMDB turned off. Thanks to Dennis Kaarsemaker.

5. Added Jeff King's core.repositoryformatversion patch.

6. After discussion with Michael Haggerty and Junio, redesigned the
backend structure.  Now the generic code builds ref transactions, and
backends apply these transactions.  The ref transaction backend patch
changed as a result of this, and I added three more patches:

refs: make lock generic (to allow ref backends to use a generic ref_update
struct to handle their own locking)

refs: move duplicate check to common code (to simplify the implementation
of ref backends, and to simplify the next patch)

refs: always handle non-normal refs in files backend (cross-backend
transactions)


David Turner (24):
  refs: make repack_without_refs and is_branch public
  refs: move transaction functions into common code
  refs-be-files.c: add method for for_each_reftype_...
  refs-be-files.c: add do_for_each_per_worktree_ref
  refs.c: move refname_is_safe to the common code
  refs.h: document make refname_is_safe and add it to header
  refs.c: move copy_msg to the common code
  refs.c: move peel_object to the common code
  refs.c: move should_autocreate_reflog to common code
  refs.c: add ref backend init function
  refs.c: add methods for reflog
  refs.c: add method for initial ref transaction commit
  initdb: move safe_create_dir into common code
  refs.c: add method for initializing refs db
  refs-be-files.c: add method to rename refs
  refs: make lock generic
  refs: make files_log_ref_write functions public
  refs: break out a ref conflict check
  refs: move duplicate check to common code
  refs: always handle non-normal refs in files backend
  refs: allow ref backend to be set for clone
  refs: add register_refs_backend
  refs: add LMDB refs backend
  refs: tests for db backend

Jeff King (1):
  introduce "extensions" form of core.repositoryformatversion

Ronnie Sahlberg (19):
  refs.c: create a public version of verify_refname_available
  refs-be-files.c: rename refs to refs-be-files
  refs.c: add a new refs.c file to hold all common refs code
  refs.c: move update_ref to refs.c
  refs.c: move delete_ref and delete_refs to the common code
  refs.c: move read_ref_at to the common refs file
  refs.c: move the hidden refs functions to the common code
  refs.c: move dwim and friend functions to the common refs code
  refs.c: move warn_if_dangling_symref* to the common code
  refs.c: move read_ref, read_ref_full and ref_exists to the common code
  refs.c: move resolve_refdup to common
  refs.c: move check_refname_format to the common code
  refs.c: move is_branch to the common code
  refs.c: move prettify_refname to the common code
  refs.c: move ref iterators to the common code
  refs.c: move head_ref_namespaced to the common code
  refs: add a backend method structure with transaction functions
  refs-be-files.c: add methods for misc ref operations
  refs-be-files.c: add methods for the ref iterators

 .gitignore                                     |    1 +
 Documentation/config.txt                       |    7 +
 Documentation/git-clone.txt                    |    4 +
 Documentation/git-init-db.txt                  |    2 +-
 Documentation/git-init.txt                     |    6 +
 Documentation/technical/refs-be-lmdb.txt       |   50 +
 Documentation/technical/repository-version.txt |   86 +
 Makefile                                       |   13 +
 builtin/clone.c                                |   27 +-
 builtin/init-db.c                              |   47 +-
 builtin/submodule--helper.c                    |    5 +-
 cache.h                                        |   19 +
 config.c                                       |   34 +
 configure.ac                                   |   33 +
 contrib/workdir/git-new-workdir                |    3 +
 environment.c                                  |    1 +
 path.c                                         |   12 +
 refs-be-files.c                                | 3521 ++++++++++++++++
 refs-be-lmdb.c                                 | 1997 +++++++++
 refs.c                                         | 5322 +++++-------------------
 refs.h                                         |  306 +-
 setup.c                                        |   69 +-
 t/t1302-repo-version.sh                        |   38 +
 t/t1460-refs-be-db.sh                          | 1109 +++++
 t/t1470-refs-be-db-reflog.sh                   |  359 ++
 t/test-lib.sh                                  |    1 +
 test-refs-be-lmdb.c                            |   68 +
 27 files changed, 8849 insertions(+), 4291 deletions(-)
 create mode 100644 Documentation/technical/refs-be-lmdb.txt
 create mode 100644 Documentation/technical/repository-version.txt
 create mode 100644 refs-be-files.c
 create mode 100644 refs-be-lmdb.c
 create mode 100755 t/t1460-refs-be-db.sh
 create mode 100755 t/t1470-refs-be-db-reflog.sh
 create mode 100644 test-refs-be-lmdb.c

-- 
2.4.2.644.g97b850b-twtrsrc

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]