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

[PATCHv6 0/7] atomic pushes

From
Stefan Beller <sbeller@google.com>
Date
Dec 19, 2014, 19:38 UTC
Message-ID
<1419017941-7090-1-git-send-email-sbeller@google.com>
This patch series adds a flag to git push to update the remote refs atomically.

This series applies on top of origin/mh/reflog-expire It can also be found at github[1].

This series incorporates all suggestions by Eric. Most changes appear in patch 4/7 as it is a complete rewrite compared to v5 of this patch series. 5/7 is new to the series and cleans up the rewrite by moving the function execute_command around.

Any comments are welcome!

Thanks, Stefan

[1] https://github.com/stefanbeller/git/tree/atomic-push-v6
Ronnie Sahlberg (3):
  receive-pack.c: add protocol support to negotiate atomic-push
  send-pack.c: add --atomic command line argument
  push.c: add an --atomic argument
Stefan Beller (4):
  send-pack: Rename ref_update_to_be_sent to check_to_send_update
  receive-pack.c: receive-pack.c: use a single ref_transaction for
    atomic pushes
  receive-pack: move execute_commands_non_atomic before execute_commands
  t5543-atomic-push.sh: add basic tests for atomic pushes
 Documentation/git-push.txt                        |   7 +-
 Documentation/git-send-pack.txt                   |   7 +-
 Documentation/technical/protocol-capabilities.txt |  13 +-
 builtin/push.c                                    |   2 +
 builtin/receive-pack.c                            | 165 +++++++++++++++-----
 builtin/send-pack.c                               |   6 +-
 remote.h                                          |   3 +-
 send-pack.c                                       |  66 +++++++-
 send-pack.h                                       |   3 +-
 t/t5543-atomic-push.sh                            | 178 ++++++++++++++++++++++
 transport.c                                       |   5 +
 transport.h                                       |   1 +
 12 files changed, 405 insertions(+), 51 deletions(-)
 create mode 100755 t/t5543-atomic-push.sh
-- 
2.2.1.62.g3f15098
Next: Stefan Beller
Message 1 of 20 in “[PATCHv6 0/7] atomic pushes”
  1. Stefan BellerDec 19, 2014
  2. 1/7 receive-pack.c: add protocol support to negotiate atomic-pushStefan Beller, Dec 19, 2014
  3. Eric SunshineDec 22, 2014
  4. Stefan BellerDec 23, 2014
  5. Michael HaggertyDec 24, 2014
  6. Junio C HamanoDec 30, 2014
  7. 2/7 send-pack: Rename ref_update_to_be_sent to check_to_send_updateStefan Beller, Dec 19, 2014
  8. 3/7 send-pack.c: add --atomic command line argumentStefan Beller, Dec 19, 2014
  9. Eric SunshineDec 22, 2014
  10. 4/7 receive-pack.c: receive-pack.c: use a single ref_transaction for atomic pushesStefan Beller, Dec 19, 2014
  11. Eric SunshineDec 23, 2014
  12. 5/7 receive-pack: move execute_commands_non_atomic before execute_commandsStefan Beller, Dec 19, 2014
  13. Junio C HamanoDec 22, 2014
  14. Stefan BellerDec 24, 2014
  15. 6/7 push.c: add an --atomic argumentStefan Beller, Dec 19, 2014
  16. Michael HaggertyDec 26, 2014
  17. Stefan BellerDec 29, 2014
  18. Junio C HamanoDec 29, 2014
  19. 7/7 t5543-atomic-push.sh: add basic tests for atomic pushesStefan Beller, Dec 19, 2014
  20. Junio C HamanoDec 22, 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.