Skip to content

Updates to git-add--interactive

Wincent Colaiuta git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Rename patch_update_file function to patch_update_pathspecgit-add--interactive.perl+2 -21 reply
2/3Move pathspec validation into interactive_addbuiltin-add.c builtin-commit.c commit.h +1 more+33 -160 replies
3/3Add "--patch" option to git-add--interactiveDocumentation/git-add.txt builtin-add.c git-add--interactive.perl+50 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Updates to git-add--interactive

Here's an updated series, this time hopefully with the braindead parts removed.

[PATCH 1/3] Add "--patch" option to git-add--interactive

Unchanged.

[PATCH 2/3] Move pathspec validation into interactive_add

Braindeadness removed.

[PATCH 3/3] Rename patch_update_file function to patch_update_pathspec

Only modified insofar as to make it apply on top of PATCH 2.

The one remaining issue is that pathspecs like "\*.h" don't work. But from comments earlier on in this thread I had the impression that they should.

They don't work because such pathspecs don't work for the underlying git-diff-files implementation that's used by git-add--interactive:

git diff-files --numstat --summary -- \*.h

Is some alternative being proposed that would allow them to work?