Skip to content

Commit b12ee8c

Browse files
committed
doc: point pathspec references to gitpathspecs(7)
Signed-off-by: Hyeonjin Kim <fruitworld.planet@gmail.com>
1 parent 8bd69e7 commit b12ee8c

11 files changed

Lines changed: 13 additions & 126 deletions

Documentation/git-add.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ OPTIONS
6161
to ignore removed files; use `--no-all` option if you want
6262
to add modified or new files but ignore removed ones.
6363
+
64-
For more details about the _<pathspec>_ syntax, see the 'pathspec' entry
65-
in linkgit:gitglossary[7].
64+
For more details about the _<pathspec>_ syntax, see linkgit:gitpathspecs[7].
6665
6766
`-n`::
6867
`--dry-run`::

Documentation/git-checkout.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ leave out at most one of _<rev-a>_ and _<rev-b>_, in which case it defaults to `
371371
`<pathspec>...`::
372372
Limits the paths affected by the operation.
373373
+
374-
For more details, see the 'pathspec' entry in linkgit:gitglossary[7].
374+
For more details, see linkgit:gitpathspecs[7].
375375
376376
DETACHED HEAD
377377
-------------

Documentation/git-commit.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ changes to tracked files.
409409
already added to the index. The contents of these files are also
410410
staged for the next commit on top of what have been staged before.
411411
+
412-
For more details, see the 'pathspec' entry in linkgit:gitglossary[7].
412+
For more details, see linkgit:gitpathspecs[7].
413413

414414
EXAMPLES
415415
--------

Documentation/git-grep.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ OPTIONS
5454
or by ignoring that the current directory is managed by Git. This
5555
is rather similar to running the regular `grep(1)` utility with its
5656
`-r` option specified, but with some additional benefits, such as
57-
using pathspec patterns to limit paths; see the 'pathspec' entry
58-
in linkgit:gitglossary[7] for more information.
57+
using pathspec patterns to limit paths; see linkgit:gitpathspecs[7]
58+
for more information.
5959
+
6060
This option cannot be used together with `--cached` or `--untracked`.
6161
See also `grep.fallbackToNoIndex` in 'CONFIGURATION' below.
@@ -316,8 +316,7 @@ question doesn't support them.
316316
If given, limit the search to paths matching at least one pattern.
317317
Both leading paths match and glob(7) patterns are supported.
318318
+
319-
For more details about the <pathspec> syntax, see the 'pathspec' entry
320-
in linkgit:gitglossary[7].
319+
For more details about the <pathspec> syntax, see linkgit:gitpathspecs[7].
321320
322321
EXAMPLES
323322
--------

Documentation/git-last-modified.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ OPTIONS
5353
`[--] <pathspec>...`::
5454
Show the commit that last modified each path matching _<pathspec>_.
5555
If no _<pathspec>_ is given, all files and subdirectories are included.
56-
See linkgit:gitglossary[7] for details on pathspec syntax.
56+
See linkgit:gitpathspecs[7] for details on pathspec syntax.
5757

5858
OUTPUT
5959
------

Documentation/git-reset.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ include::diff-context-options.adoc[]
137137
`<pathspec>...`::
138138
Limits the paths affected by the operation.
139139
+
140-
For more details, see the 'pathspec' entry in linkgit:gitglossary[7].
140+
For more details, see linkgit:gitpathspecs[7].
141141

142142
EXAMPLES
143143
--------

Documentation/git-restore.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ in linkgit:git-checkout[1] for details.
145145
`<pathspec>...`::
146146
Limits the paths affected by the operation.
147147
+
148-
For more details, see the 'pathspec' entry in linkgit:gitglossary[7].
148+
For more details, see linkgit:gitpathspecs[7].
149149

150150
EXAMPLES
151151
--------

Documentation/git-rm.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ directories `d` and `d2`, there is a difference between using
4343
`git rm 'd*'` and `git rm 'd/*'`, as the former will also remove all
4444
of directory `d2`.
4545
+
46-
For more details, see the _<pathspec>_ entry in linkgit:gitglossary[7].
46+
For more details, see linkgit:gitpathspecs[7].
4747

4848
`-f`::
4949
`--force`::

Documentation/git-stash.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ that match the pathspec. The index entries and working tree files
279279
are then rolled back to the state in HEAD only for these files,
280280
too, leaving files that do not match the pathspec intact.
281281
+
282-
For more details, see the 'pathspec' entry in linkgit:gitglossary[7].
282+
For more details, see linkgit:gitpathspecs[7].
283283
284284
_<stash>_::
285285
This option is only valid for `apply`, `branch`, `drop`, `pop`,

Documentation/git-status.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ ignored, then the directory is not shown, but all contents are shown.
155155
See also linkgit:git-diff[1] `--find-renames`.
156156

157157
`<pathspec>...`::
158-
See the 'pathspec' entry in linkgit:gitglossary[7].
158+
See linkgit:gitpathspecs[7].
159159

160160
OUTPUT
161161
------

0 commit comments

Comments
 (0)