push: update remote tags only with force
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest8 patches 23 repliesIn review
- v57 patches 8 repliesSuperseded
- v45 patches 3 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 5 patches | 11 replies | Superseded | |
| v2 | 5 patches | 3 replies | Superseded | |
| v1 | 1 patch | 4 replies | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | push: return reject reasons as a bitsetbuiltin/ builtin/ transport.c +1 more | +19 | 0 replies | |
| 2/8 | push: add advice for rejected tag referencebuiltin/ cache.h remote.c +2 more | +25 | 4 replies | |
| 3/8 | push: flag updatescache.h remote.c | +12 | 0 replies | |
| 4/8 | push: flag updates that require forcecache.h remote.c transport.c | +12 | 0 replies | |
| 5/8 | push: require force for refs under refs/tags/Documentation/ builtin/ builtin/ +6 more | +62 | 0 replies | |
| 6/8 | push: require force for annotated tagsDocumentation/ remote.c t/ | +35 | 0 replies | |
| 7/8 | push: clarify rejection of update to non-commit-ishremote.c | +5 | 0 replies | |
| 8/8 | push: cleanup push rules commentremote.c | +17 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.
Cover letter [PATCH v6 0/8] push: update remote tags only with force
This patch series originated in response to the following thread:
http://thread.gmane.org/gmane.comp.version-control.git/208354
I made some adjustments based on Junio's last round of feedback including a new patch reworking the "push rules" comment in remote.c. Also refined some of the log messages--nothing major. Finally, took a stab at putting something together for the release notes, see below.
Chris
Release notes:
"git push" no longer updates tags (lightweight or annotated) by default. Specifically, if the destination reference already exists and is under refs/tags/ or it points to a tag object, it is not allowed to fast- forward (unless forced using +A:B notation or by passing --force.) This is consistent with how a tag is normally thought of: a reference that does not move once defined. It also ensures a push will not inadvertently clobber an already existing tag--something that can go unnoticed if fast-forwarding is allowed.
Chris Rorvick (8):
push: return reject reasons as a bitset
push: add advice for rejected tag reference
push: flag updates
push: flag updates that require force
push: require force for refs under refs/tags/
push: require force for annotated tags
push: clarify rejection of update to non-commit-ish
push: cleanup push rules comment
Documentation/git-push.txt | 9 ++--- builtin/push.c | 24 +++++++++----- builtin/send-pack.c | 9 +++-- cache.h | 7 +++- remote.c | 83 +++++++++++++++++++++++++++++++++++----------- send-pack.c | 1 + t/t5516-fetch-push.sh | 44 +++++++++++++++++++++++- transport-helper.c | 6 ++++ transport.c | 25 ++++++++------ transport.h | 10 +++--- 10 files changed, 167 insertions(+), 51 deletions(-)
Signature · 1 line
1.8.0.158.g0c4328c