git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 0/5] use packed refs for ref-transactions

From
Ronnie Sahlberg <sahlberg@google.com>
Date
Jul 30, 2014, 21:55 UTC
Message-ID
<1406757341-4096-1-git-send-email-sahlberg@google.com>

This is a small patch series that continues ontop of the ref-transactions-rename series I posted earlier today.

This series expands the use of the packed refs file to make multi-ref updates much more atomic. Additionally it allows us to continue pushing external caller to use transactions instead of accessing (packed) refs directly which allows us to remove a whole bunch of refs functions from the public api.

After this series there is no real need any more to expose that packed refs even exist to external callers.

This series is built ontop of the previous series that was posted earlier today as :

Version 2: -- Updated to address Junio's concerns

Ronnie Sahlberg (5):
  refs.c: move reflog updates into its own function
  refs.c: write updates to packed refs when a transaction has more than
    one ref
  remote.c: use a transaction for deleting refs
  refs.c: make repack_without_refs static
  refs.c: make the *_packed_refs functions static
 builtin/clone.c       |  16 ++++--
 builtin/remote.c      |  69 ++++++++++++----------
 refs.c                | 155 ++++++++++++++++++++++++++++++++------------------
 refs.h                |  33 -----------
 t/t5516-fetch-push.sh |   2 +-
 5 files changed, 151 insertions(+), 124 deletions(-)
-- 
2.0.1.523.g0041e8a
Next: Ronnie Sahlberg
Message 1 of 6 in “use packed refs for ref-transactions”
  1. 0/5 use packed refs for ref-transactionsRonnie Sahlberg, Jul 30, 2014
  2. 1/5 refs.c: move reflog updates into its own functionRonnie Sahlberg, Jul 30, 2014
  3. 2/5 refs.c: write updates to packed refs when a transaction has more than one refRonnie Sahlberg, Jul 30, 2014
  4. 3/5 remote.c: use a transaction for deleting refsRonnie Sahlberg, Jul 30, 2014
  5. 4/5 refs.c: make repack_without_refs staticRonnie Sahlberg, Jul 30, 2014
  6. 5/5 refs.c: make the *_packed_refs functions staticRonnie Sahlberg, Jul 30, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.