ref-transactions-rename
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest5 patches 0 repliesNew
- v14 patches 0 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | refs.c: allow passing raw git_committer_info as email to _update_reflogrefs.c refs.h | +13 | 0 replies | |
| 2/5 | refs.c: return error instead of dying when locking fails during transactionrefs.c | +1 | 0 replies | |
| 3/5 | refs.c: use packed refs when deleting refs during a transactionbuiltin/ refs.c | +127 | 0 replies | |
| 4/5 | refs.c: update rename_ref to use a transactionrefs.c t/ | +65 | 0 replies | |
| 5/5 | refs.c: rollback the lockfile before we die() in repack_without_refsrefs.c | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/5] ref-transactions-rename
These patches can also be found at:
https://github.com/rsahlberg/git/tree/ref-transactions-rename
This series is based on, and applies ontop of, the previous ref-transactions-reflog series, also found at my githup repo.
This series updates the reflog handling and converts rename_ref to use a single transaction to delete the old ref, create the new ref and to move the reflog.
In order to make the transaction fully atomic we also introduce support for using the packed refs file for performing the delete-and-create that is done during the rename. This means that the rename operation is fully atomic for all external observers and there is no longer a point in time where the sha1 is unreferenced, after the old ref has been deleted but before the new ref has been created.
Additionally, since we now use the transaction API for the reflog changes we no longer need to disallow renames for refs whose reflogs are symbolic links.
Version 3:
- Updated to build ontop of current ref-transactions-reflog
Ronnie Sahlberg (5):
refs.c: allow passing raw git_committer_info as email to
_update_reflog
refs.c: return error instead of dying when locking fails during
transaction
refs.c: use packed refs when deleting refs during a transaction refs.c: update rename_ref to use a transaction
refs.c: rollback the lockfile before we die() in repack_without_refs
builtin/remote.c | 13 +- refs.c | 368 +++++++++++++++++++++++++++++------------------------- refs.h | 1 + t/t3200-branch.sh | 7 -- 4 files changed, 209 insertions(+), 180 deletions(-)
Signature · 1 line
2.0.0.467.g08c0633