Skip to content

Add --pathspec-from-file option

Alexandr Miloslavskiy via GitGitGadget git 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest13 patches 4 repliesIn review
  2. v36 patches 2 repliesSuperseded
  3. v26 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches31 repliesSuperseded

Changes in v4 from the cover letter

================

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13parse-options.h: add new options `--pathspec-from-file`, `--pathspec-file-nul`parse-options.h+2 -00 replies
2/13pathspec: add new function to parse filepathspec.c pathspec.h+48 -00 replies
3/13doc: reset: synchronize <pathspec> descriptionDocumentation/git-reset.txt builtin/reset.c+20 -130 replies
4/13reset: support the `--pathspec-from-file` optionDocumentation/git-reset.txt builtin/reset.c t/t7107-reset-pathspec-file.sh+192 -50 replies
5/13doc: commit: synchronize <pathspec> descriptionDocumentation/git-commit.txt+8 -70 replies
6/13commit: support the --pathspec-from-file optionDocumentation/git-commit.txt builtin/commit.c t/t7526-commit-pathspec-file.sh+166 -50 replies
7/13cmd_add: prepare for next patchbuiltin/add.c+17 -170 replies
8/13add: support the --pathspec-from-file optionDocumentation/git-add.txt builtin/add.c t/t3704-add-pathspec-file.sh+168 -50 replies
9/13doc: checkout: remove duplicate synopsisDocumentation/git-checkout.txt+1 -20 replies
10/13doc: checkout: fix broken text referenceDocumentation/git-checkout.txt+4 -60 replies
11/13doc: checkout: synchronize <pathspec> descriptionDocumentation/git-checkout.txt+15 -90 replies
12/13doc: restore: synchronize <pathspec> descriptionDocumentation/git-restore.txt+10 -20 replies
13/13checkout, restore: support the --pathspec-from-file optionDocumentation/git-checkout.txt Documentation/git-restore.txt builtin/checkout.c +3 more+336 -40 replies

Reviews trailers per patch

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

PatchJohannes Schindelin
1/13
2/13Co-authored-by
3/13
4/13Co-authored-by
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

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

Read the v4 thread

Cover letter [PATCH v4 00/13] Add --pathspec-from-file option

Changes from V3:
================

The branch was rebased onto latest master. These patches remain unchanged since they were accepted in V3: parse-options.h: add new options --pathspec-from-file, --pathspec-file-nulpathspec: add new function to parse file doc: reset: synchronize description reset: support the --pathspec-from-file option doc: commit: synchronize description commit:
support the --pathspec-from-file option These patches are new, extending support to more git commands: cmd_add: prepare for next patch add: support the --pathspec-from-file option doc: checkout: remove duplicate synopsis
doc: checkout: fix broken text reference doc: checkout: synchronize description doc: restore: synchronize description checkout, restore: support the --pathspec-from-file option

Alexandr Miloslavskiy (13):
parse-options.h: add new options --pathspec-from-file,

    `--pathspec-file-nul`

pathspec: add new function to parse file
doc: reset: synchronize <pathspec> description
reset: support the --pathspec-from-file option
doc: commit: synchronize <pathspec> description
commit: support the --pathspec-from-file option
cmd_add: prepare for next patch
add: support the --pathspec-from-file option
doc: checkout: remove duplicate synopsis
doc: checkout: fix broken text reference
doc: checkout: synchronize <pathspec> description
doc: restore: synchronize <pathspec> description checkout, restore: support the --pathspec-from-file option

 Documentation/git-add.txt         |  16 ++-
 Documentation/git-checkout.txt    |  50 +++++++---
 Documentation/git-commit.txt      |  29 ++++--
 Documentation/git-reset.txt       |  48 ++++++---
 Documentation/git-restore.txt     |  26 ++++-
 builtin/add.c                     |  60 ++++++++----
 builtin/checkout.c                |  31 +++++-
 builtin/commit.c                  |  25 ++++-
 builtin/reset.c                   |  25 ++++-
 parse-options.h                   |   2 +
 pathspec.c                        |  38 ++++++++
 pathspec.h                        |  10 ++
 t/t2026-checkout-pathspec-file.sh | 139 +++++++++++++++++++++++++++
 t/t2072-restore-pathspec-file.sh  | 139 +++++++++++++++++++++++++++
 t/t3704-add-pathspec-file.sh      | 127 ++++++++++++++++++++++++
 t/t7107-reset-pathspec-file.sh    | 155 ++++++++++++++++++++++++++++++
 t/t7526-commit-pathspec-file.sh   | 130 +++++++++++++++++++++++++
 t/t9902-completion.sh             |   2 +
 18 files changed, 982 insertions(+), 70 deletions(-)
 create mode 100755 t/t2026-checkout-pathspec-file.sh
 create mode 100755 t/t2072-restore-pathspec-file.sh
 create mode 100755 t/t3704-add-pathspec-file.sh
 create mode 100755 t/t7107-reset-pathspec-file.sh
 create mode 100755 t/t7526-commit-pathspec-file.sh

base-commit: 228f53135a4a41a37b6be8e4d6e2b6153db4a8ed
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-445%2FSyntevoAlex%2F%230207_pathspec_from_file-v4
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-445/SyntevoAlex/#0207_pathspec_from_file-v4
Pull-Request: https://github.com/gitgitgadget/git/pull/445

Range-diff vs v3:

  1:  19b80326ea =  1:  cca5aee392 parse-options.h: add new options `--pathspec-from-file`, `--pathspec-file-nul`
  2:  55a7c6ec3c =  2:  fea64dfbf9 pathspec: add new function to parse file
  3:  d9f32e523c =  3:  1182ba3953 doc: reset: synchronize <pathspec> description
  4:  8a10ff881b =  4:  cea470fc91 reset: support the `--pathspec-from-file` option
  5:  0b79797e77 =  5:  0e1ac7e8a7 doc: commit: synchronize <pathspec> description
  6:  7e48212002 =  6:  c877866c13 commit: support the --pathspec-from-file option
  -:  ---------- >  7:  a97910cb55 cmd_add: prepare for next patch
  -:  ---------- >  8:  9a62da3470 add: support the --pathspec-from-file option
  -:  ---------- >  9:  5e449c8d29 doc: checkout: remove duplicate synopsis
  -:  ---------- > 10:  a498dda97b doc: checkout: fix broken text reference
  -:  ---------- > 11:  fd166755aa doc: checkout: synchronize <pathspec> description
  -:  ---------- > 12:  9e37a740e6 doc: restore: synchronize <pathspec> description
  -:  ---------- > 13:  c4dd4eaf13 checkout, restore: support the --pathspec-from-file option
Signature · 1 line
gitgitgadget