Skip to content

apply: fix apply --intent-to-add

Raymond E. Pasco git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5apply: error on --intent-to-add outside gitdirapply.c+6 -20 replies
2/5apply: read in the index in --intent-to-add modeapply.c+1 -12 replies
3/5apply: only write intents to add for new filesapply.c+1 -10 replies
4/5t4140: test apply --intent-to-add interactionst/t4140-apply-ita.sh+30 -10 replies
5/5apply docs: clarify wording for --intent-to-addDocumentation/git-apply.adoc+4 -40 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchJohannes Altmanninger
1/5Based-on-patch-by
2/5Original-patch-by
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] apply: fix apply --intent-to-add

This patch series fixes the -N/--intent-to-add flag for git apply, which has not worked properly since its introduction in Git 2.19.

In particular, the index is properly initialized, and not touched except to add the requested intents to add.

Loosely based on the patch from Johannes Altmanninger, message-id <[email protected]>, but that patch turned out to be incorrect.

Raymond E. Pasco (5):
apply: error on --intent-to-add outside gitdir
apply: read in the index in --intent-to-add mode
apply: only write intents to add for new files
t4140: test apply --intent-to-add interactions apply docs: clarify wording for --intent-to-add

 Documentation/git-apply.adoc |  8 ++++----
 apply.c                      | 12 ++++++++----
 t/t4140-apply-ita.sh         | 31 ++++++++++++++++++++++++++++++-
 3 files changed, 42 insertions(+), 9 deletions(-)
Signature · 1 line
2.49.0.1106.gc0efa3ba58