Skip to content

Commit 467c019

Browse files
Jonathan Niedergitster
authored andcommitted
Documentation: more "git-" versus "git " changes
With git-commands moving out of $(bindir), it is useful to make a clearer distinction between the git subcommand 'git-whatever' and the command you type, `git whatever <options>`. So we use a dash after "git" when referring to the former and not the latter. I already sent a patch doing this same thing, but I missed some spots. Signed-off-by: Jonathan Nieder <jrnieder@uchicago.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7a7d4ef commit 467c019

13 files changed

+71
-71
lines changed

Documentation/config.txt

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ core.pager::
356356

357357
core.whitespace::
358358
A comma separated list of common whitespace problems to
359-
notice. `git diff` will use `color.diff.whitespace` to
360-
highlight them, and `git apply --whitespace=error` will
359+
notice. `git-diff` will use `color.diff.whitespace` to
360+
highlight them, and `git-apply --whitespace=error` will
361361
consider them as errors:
362362
+
363363
* `trailing-space` treats trailing whitespaces at the end of the line
@@ -426,20 +426,20 @@ branch.autosetuprebase::
426426
This option defaults to never.
427427

428428
branch.<name>.remote::
429-
When in branch <name>, it tells `git fetch` which remote to fetch.
430-
If this option is not given, `git fetch` defaults to remote "origin".
429+
When in branch <name>, it tells `git-fetch` which remote to fetch.
430+
If this option is not given, `git-fetch` defaults to remote "origin".
431431

432432
branch.<name>.merge::
433-
When in branch <name>, it tells `git fetch` the default
433+
When in branch <name>, it tells `git-fetch` the default
434434
refspec to be marked for merging in FETCH_HEAD. The value is
435435
handled like the remote part of a refspec, and must match a
436436
ref which is fetched from the remote given by
437437
"branch.<name>.remote".
438-
The merge information is used by `git pull` (which at first calls
439-
`git fetch`) to lookup the default branch for merging. Without
440-
this option, `git pull` defaults to merge the first refspec fetched.
438+
The merge information is used by `git-pull` (which at first calls
439+
`git-fetch`) to lookup the default branch for merging. Without
440+
this option, `git-pull` defaults to merge the first refspec fetched.
441441
Specify multiple values to get an octopus merge.
442-
If you wish to setup `git pull` so that it merges into <name> from
442+
If you wish to setup `git-pull` so that it merges into <name> from
443443
another branch in the local repository, you can point
444444
branch.<name>.merge to the desired branch, and use the special setting
445445
`.` (a period) for branch.<name>.remote.
@@ -508,12 +508,12 @@ color.diff.<slot>::
508508

509509
color.interactive::
510510
When set to `always`, always use colors for interactive prompts
511-
and displays (such as those used by "git add --interactive").
511+
and displays (such as those used by "git-add --interactive").
512512
When false (or `never`), never. When set to `true` or `auto`, use
513513
colors only when the output is to the terminal. Defaults to false.
514514

515515
color.interactive.<slot>::
516-
Use customized color for `git add --interactive`
516+
Use customized color for `git-add --interactive`
517517
output. `<slot>` may be `prompt`, `header`, or `help`, for
518518
three distinct types of normal output from interactive
519519
programs. The values of these variables may be specified as
@@ -550,14 +550,14 @@ color.ui::
550550
take precedence over this setting. Defaults to false.
551551

552552
diff.autorefreshindex::
553-
When using `git diff` to compare with work tree
553+
When using `git-diff` to compare with work tree
554554
files, do not consider stat-only change as changed.
555555
Instead, silently run `git update-index --refresh` to
556556
update the cached stat information for paths whose
557557
contents in the work tree match the contents in the
558558
index. This option defaults to true. Note that this
559-
affects only `git diff` Porcelain, and not lower level
560-
`diff` commands, such as `git diff-files`.
559+
affects only `git-diff` Porcelain, and not lower level
560+
`diff` commands, such as `git-diff-files`.
561561

562562
diff.external::
563563
If this config variable is set, diff generation is not
@@ -568,7 +568,7 @@ diff.external::
568568

569569
diff.renameLimit::
570570
The number of files to consider when performing the copy/rename
571-
detection; equivalent to the git diff option '-l'.
571+
detection; equivalent to the git-diff option '-l'.
572572

573573
diff.renames::
574574
Tells git to detect renames. If set to any boolean value, it
@@ -608,7 +608,7 @@ format.pretty::
608608

609609
gc.aggressiveWindow::
610610
The window size parameter used in the delta compression
611-
algorithm used by 'git gc --aggressive'. This defaults
611+
algorithm used by 'git-gc --aggressive'. This defaults
612612
to 10.
613613

614614
gc.auto::
@@ -625,37 +625,37 @@ gc.autopacklimit::
625625
default value is 50. Setting this to 0 disables it.
626626

627627
gc.packrefs::
628-
`git gc` does not run `git pack-refs` in a bare repository by
628+
`git-gc` does not run `git pack-refs` in a bare repository by
629629
default so that older dumb-transport clients can still fetch
630-
from the repository. Setting this to `true` lets `git gc`
630+
from the repository. Setting this to `true` lets `git-gc`
631631
to run `git pack-refs`. Setting this to `false` tells
632-
`git gc` never to run `git pack-refs`. The default setting is
632+
`git-gc` never to run `git pack-refs`. The default setting is
633633
`notbare`. Enable it only when you know you do not have to
634634
support such clients. The default setting will change to `true`
635635
at some stage, and setting this to `false` will continue to
636-
prevent `git pack-refs` from being run from `git gc`.
636+
prevent `git pack-refs` from being run from `git-gc`.
637637

638638
gc.pruneexpire::
639-
When `git gc` is run, it will call `prune --expire 2.weeks.ago`.
639+
When `git-gc` is run, it will call `prune --expire 2.weeks.ago`.
640640
Override the grace period with this config variable.
641641

642642
gc.reflogexpire::
643-
`git reflog expire` removes reflog entries older than
643+
`git-reflog expire` removes reflog entries older than
644644
this time; defaults to 90 days.
645645

646646
gc.reflogexpireunreachable::
647-
`git reflog expire` removes reflog entries older than
647+
`git-reflog expire` removes reflog entries older than
648648
this time and are not reachable from the current tip;
649649
defaults to 30 days.
650650

651651
gc.rerereresolved::
652652
Records of conflicted merge you resolved earlier are
653-
kept for this many days when `git rerere gc` is run.
653+
kept for this many days when `git-rerere gc` is run.
654654
The default is 60 days. See linkgit:git-rerere[1].
655655

656656
gc.rerereunresolved::
657657
Records of conflicted merge you have not resolved are
658-
kept for this many days when `git rerere gc` is run.
658+
kept for this many days when `git-rerere gc` is run.
659659
The default is 15 days. See linkgit:git-rerere[1].
660660

661661
rerere.enabled::
@@ -844,7 +844,7 @@ instaweb.port::
844844

845845
log.date::
846846
Set default date-time mode for the log command. Setting log.date
847-
value is similar to using git log's --date option. The value is one of
847+
value is similar to using git-log's --date option. The value is one of the
848848
following alternatives: {relative,local,default,iso,rfc,short}.
849849
See linkgit:git-log[1].
850850

Documentation/git-bisect.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on the subcommand:
2626
git bisect log
2727
git bisect run <cmd>...
2828

29-
This command uses `git rev-list --bisect` to help drive the
29+
This command uses `git-rev-list --bisect` to help drive the
3030
binary search process to find which change introduced a bug, given an
3131
old "good" commit object name and a later "bad" commit object name.
3232

@@ -101,7 +101,7 @@ $ git bisect visualize
101101
to see the currently remaining suspects in `gitk`. `visualize` is a bit
102102
too long to type and `view` is provided as a synonym.
103103

104-
If `DISPLAY` environment variable is not set, `git log` is used
104+
If 'DISPLAY' environment variable is not set, `git-log` is used
105105
instead. You can even give command line options such as `-p` and
106106
`--stat`.
107107

Documentation/git-commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ but can be used to amend a merge commit.
155155
Make a commit only from the paths specified on the
156156
command line, disregarding any contents that have been
157157
staged so far. This is the default mode of operation of
158-
'git commit' if any paths are given on the command line,
158+
'git-commit' if any paths are given on the command line,
159159
in which case this option can be omitted.
160160
If this option is specified together with '--amend', then
161161
no paths need be specified, which can be used to amend

Documentation/git-filter-branch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ to other tags will be rewritten to point to the underlying commit.
163163

164164
-f::
165165
--force::
166-
`git filter-branch` refuses to start with an existing temporary
166+
`git-filter-branch` refuses to start with an existing temporary
167167
directory or when there are already refs starting with
168168
'refs/original/', unless forced.
169169

Documentation/git-format-patch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ EXAMPLES
190190
the current branch using `git-am` to cherry-pick them:
191191
+
192192
------------
193-
$ git format-patch -k --stdout R1..R2 | git-am -3 -k
193+
$ git format-patch -k --stdout R1..R2 | git am -3 -k
194194
------------
195195

196196
* Extract all commits which are in the current branch but not in the

Documentation/git-help.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ man.<tool>.path
120120
You can explicitly provide a full path to your preferred man viewer by
121121
setting the configuration variable 'man.<tool>.path'. For example, you
122122
can configure the absolute path to konqueror by setting
123-
'man.konqueror.path'. Otherwise, 'git help' assumes the tool is
123+
'man.konqueror.path'. Otherwise, 'git-help' assumes the tool is
124124
available in PATH.
125125

126126
man.<tool>.cmd

Documentation/git-rebase.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ NOTES
259259
When you rebase a branch, you are changing its history in a way that
260260
will cause problems for anyone who already has a copy of the branch
261261
in their repository and tries to pull updates from you. You should
262-
understand the implications of using 'git rebase' on a repository that
262+
understand the implications of using 'git-rebase' on a repository that
263263
you share.
264264

265-
When the git rebase command is run, it will first execute a "pre-rebase"
265+
When the git-rebase command is run, it will first execute a "pre-rebase"
266266
hook if one exists. You can use this hook to do sanity checks and
267267
reject the rebase if it isn't appropriate. Please see the template
268268
pre-rebase hook script for an example.

Documentation/git-reflog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ OPTIONS
6060
refs.
6161
+
6262
This computation involves traversing all the reachable objects, i.e. it
63-
has the same cost as 'git prune'. Fortunately, once this is run, we
63+
has the same cost as 'git-prune'. Fortunately, once this is run, we
6464
should not have to ever worry about missing objects, because the current
6565
prune and pack-objects know about reflogs and protect objects referred by
6666
them.

Documentation/git-remote.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ $ git checkout -b nfs linux-nfs/master
124124
...
125125
------------
126126

127-
* Imitate 'git clone' but track only selected branches
127+
* Imitate 'git-clone' but track only selected branches
128128
+
129129
------------
130130
$ mkdir project.git

Documentation/git-rerere.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ If this three-way merge resolves cleanly, the result is written
163163
out to your working tree file, so you would not have to manually
164164
resolve it. Note that `git-rerere` leaves the index file alone,
165165
so you still need to do the final sanity checks with `git diff`
166-
(or `git diff -c`) and `git add` when you are satisfied.
166+
(or `git diff -c`) and `git-add` when you are satisfied.
167167

168168
As a convenience measure, `git-merge` automatically invokes
169169
`git-rerere` when it exits with a failed automerge, which

0 commit comments

Comments
 (0)