2018-05-21 02:40:03 +08:00
|
|
|
# Command classification list
|
|
|
|
# ---------------------------
|
|
|
|
# All supported commands, builtin or external, must be described in
|
|
|
|
# here. This info is used to list commands in various places. Each
|
|
|
|
# command is on one line followed by one or more attributes.
|
|
|
|
#
|
|
|
|
# The first attribute group is mandatory and indicates the command
|
|
|
|
# type. This group includes:
|
|
|
|
#
|
|
|
|
# mainporcelain
|
|
|
|
# ancillarymanipulators
|
|
|
|
# ancillaryinterrogators
|
|
|
|
# foreignscminterface
|
|
|
|
# plumbingmanipulators
|
|
|
|
# plumbinginterrogators
|
|
|
|
# synchingrepositories
|
|
|
|
# synchelpers
|
|
|
|
# purehelpers
|
|
|
|
#
|
|
|
|
# The type names are self explanatory. But if you want to see what
|
|
|
|
# command belongs to what group to get a better picture, have a look
|
|
|
|
# at "git" man page, "GIT COMMANDS" section.
|
|
|
|
#
|
|
|
|
# Commands of type mainporcelain can also optionally have one of these
|
|
|
|
# attributes:
|
|
|
|
#
|
|
|
|
# init
|
|
|
|
# worktree
|
|
|
|
# info
|
|
|
|
# history
|
|
|
|
# remote
|
|
|
|
#
|
|
|
|
# These commands are considered "common" and will show up in "git
|
|
|
|
# help" output in groups. Uncommon porcelain commands must not
|
|
|
|
# specify any of these attributes.
|
|
|
|
#
|
|
|
|
# "complete" attribute is used to mark that the command should be
|
|
|
|
# completable by git-completion.bash. Note that by default,
|
|
|
|
# mainporcelain commands are completable so you don't need this
|
|
|
|
# attribute.
|
|
|
|
#
|
|
|
|
# As part of the Git man page list, the man(5/7) guides are also
|
|
|
|
# specified here, which can only have "guide" attribute and nothing
|
|
|
|
# else.
|
|
|
|
#
|
2018-05-10 16:46:41 +08:00
|
|
|
### command list (do not change this line, also do not change alignment)
|
|
|
|
# command name category [category] [category]
|
2015-05-22 01:39:21 +08:00
|
|
|
git-add mainporcelain worktree
|
2007-12-02 15:39:19 +08:00
|
|
|
git-am mainporcelain
|
|
|
|
git-annotate ancillaryinterrogators
|
2018-05-21 02:40:04 +08:00
|
|
|
git-apply plumbingmanipulators complete
|
2007-12-02 15:39:19 +08:00
|
|
|
git-archimport foreignscminterface
|
|
|
|
git-archive mainporcelain
|
2015-05-22 01:39:21 +08:00
|
|
|
git-bisect mainporcelain info
|
2018-05-21 02:40:04 +08:00
|
|
|
git-blame ancillaryinterrogators complete
|
2015-05-22 01:39:21 +08:00
|
|
|
git-branch mainporcelain history
|
2007-12-02 15:39:19 +08:00
|
|
|
git-bundle mainporcelain
|
|
|
|
git-cat-file plumbinginterrogators
|
|
|
|
git-check-attr purehelpers
|
2013-01-07 00:58:13 +08:00
|
|
|
git-check-ignore purehelpers
|
2013-07-13 08:53:10 +08:00
|
|
|
git-check-mailmap purehelpers
|
2019-04-25 17:45:58 +08:00
|
|
|
git-checkout mainporcelain
|
2007-12-02 15:39:19 +08:00
|
|
|
git-checkout-index plumbingmanipulators
|
|
|
|
git-check-ref-format purehelpers
|
2018-10-12 02:33:50 +08:00
|
|
|
git-cherry plumbinginterrogators complete
|
2007-12-02 15:39:19 +08:00
|
|
|
git-cherry-pick mainporcelain
|
|
|
|
git-citool mainporcelain
|
|
|
|
git-clean mainporcelain
|
2015-05-22 01:39:21 +08:00
|
|
|
git-clone mainporcelain init
|
2012-04-21 12:44:32 +08:00
|
|
|
git-column purehelpers
|
2015-05-22 01:39:21 +08:00
|
|
|
git-commit mainporcelain history
|
2018-04-03 04:34:18 +08:00
|
|
|
git-commit-graph plumbingmanipulators
|
2007-12-02 15:39:19 +08:00
|
|
|
git-commit-tree plumbingmanipulators
|
2018-05-21 02:40:04 +08:00
|
|
|
git-config ancillarymanipulators complete
|
2007-12-02 15:39:19 +08:00
|
|
|
git-count-objects ancillaryinterrogators
|
2012-08-08 15:58:27 +08:00
|
|
|
git-credential purehelpers
|
2012-08-09 02:34:49 +08:00
|
|
|
git-credential-cache purehelpers
|
|
|
|
git-credential-store purehelpers
|
2007-12-02 15:39:19 +08:00
|
|
|
git-cvsexportcommit foreignscminterface
|
|
|
|
git-cvsimport foreignscminterface
|
|
|
|
git-cvsserver foreignscminterface
|
|
|
|
git-daemon synchingrepositories
|
|
|
|
git-describe mainporcelain
|
help: move git-diff and git-reset to different groups
The third column in command-list.txt determines what group a common
command is printed in 'git help'.
"git reset" is currently in the "work on the current change (see also:
git help everyday)" group. While it's true that "git reset" can
manipulate the index and can be in this group, its unique
functionality is resetting HEAD, which should be the "grow, mark,
tweak history" group.
Moving it there will also avoid the confusion because both 'restore'
and 'reset' are in the same group, next to each other.
While looking at the 'group, mark, tweak history', I realize "git
diff" should not be there. All the commands in this group is about
_changing_ the commit history while "git diff" is a read-only
operation. It fits better in the "examine the history and state" group
(especially when "git status", its close friend, is already there).
This is what we have after the reorganization:
work on the current change (see also: git help everyday)
add Add file contents to the index
mv Move or rename a file, a directory, or a symlink
restore Restore working tree files
rm Remove files from the working tree and from the index
examine the history and state (see also: git help revisions)
bisect Use binary search to find the commit that introduced a bug
diff Show changes between commits, commit and working tree, etc
grep Print lines matching a pattern
log Show commit logs
show Show various types of objects
status Show the working tree status
grow, mark and tweak your common history
branch List, create, or delete branches
commit Record changes to the repository
merge Join two or more development histories together
rebase Reapply commits on top of another base tip
reset Reset current HEAD to the specified state
switch Switch branches
tag Create, list, delete or verify a tag object signed with GPG
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-04-25 17:45:59 +08:00
|
|
|
git-diff mainporcelain info
|
2007-12-02 15:39:19 +08:00
|
|
|
git-diff-files plumbinginterrogators
|
|
|
|
git-diff-index plumbinginterrogators
|
|
|
|
git-diff-tree plumbinginterrogators
|
2018-05-21 02:40:04 +08:00
|
|
|
git-difftool ancillaryinterrogators complete
|
2015-05-09 03:29:35 +08:00
|
|
|
git-fast-export ancillarymanipulators
|
|
|
|
git-fast-import ancillarymanipulators
|
2015-05-22 01:39:21 +08:00
|
|
|
git-fetch mainporcelain remote
|
2007-12-02 15:39:19 +08:00
|
|
|
git-fetch-pack synchingrepositories
|
|
|
|
git-filter-branch ancillarymanipulators
|
|
|
|
git-fmt-merge-msg purehelpers
|
|
|
|
git-for-each-ref plumbinginterrogators
|
|
|
|
git-format-patch mainporcelain
|
2018-05-21 02:40:04 +08:00
|
|
|
git-fsck ancillaryinterrogators complete
|
2007-12-02 15:39:19 +08:00
|
|
|
git-gc mainporcelain
|
2018-10-12 02:39:32 +08:00
|
|
|
git-get-tar-commit-id plumbinginterrogators
|
2015-05-22 01:39:21 +08:00
|
|
|
git-grep mainporcelain info
|
2007-12-02 15:39:19 +08:00
|
|
|
git-gui mainporcelain
|
|
|
|
git-hash-object plumbingmanipulators
|
2018-05-21 02:40:04 +08:00
|
|
|
git-help ancillaryinterrogators complete
|
2009-12-27 01:01:07 +08:00
|
|
|
git-http-backend synchingrepositories
|
2007-12-02 15:39:19 +08:00
|
|
|
git-http-fetch synchelpers
|
|
|
|
git-http-push synchelpers
|
|
|
|
git-imap-send foreignscminterface
|
|
|
|
git-index-pack plumbingmanipulators
|
2015-05-22 01:39:21 +08:00
|
|
|
git-init mainporcelain init
|
2018-05-21 02:40:04 +08:00
|
|
|
git-instaweb ancillaryinterrogators complete
|
2014-10-14 02:16:33 +08:00
|
|
|
git-interpret-trailers purehelpers
|
2007-12-02 15:39:19 +08:00
|
|
|
gitk mainporcelain
|
2015-05-22 01:39:21 +08:00
|
|
|
git-log mainporcelain info
|
2007-12-02 15:39:19 +08:00
|
|
|
git-ls-files plumbinginterrogators
|
|
|
|
git-ls-remote plumbinginterrogators
|
|
|
|
git-ls-tree plumbinginterrogators
|
|
|
|
git-mailinfo purehelpers
|
|
|
|
git-mailsplit purehelpers
|
2015-05-22 01:39:21 +08:00
|
|
|
git-merge mainporcelain history
|
2007-12-02 15:39:19 +08:00
|
|
|
git-merge-base plumbinginterrogators
|
|
|
|
git-merge-file plumbingmanipulators
|
|
|
|
git-merge-index plumbingmanipulators
|
|
|
|
git-merge-one-file purehelpers
|
2018-05-21 02:40:04 +08:00
|
|
|
git-mergetool ancillarymanipulators complete
|
2007-12-02 15:39:19 +08:00
|
|
|
git-merge-tree ancillaryinterrogators
|
2018-07-13 03:39:20 +08:00
|
|
|
git-multi-pack-index plumbingmanipulators
|
2007-12-02 15:39:19 +08:00
|
|
|
git-mktag plumbingmanipulators
|
|
|
|
git-mktree plumbingmanipulators
|
2015-05-22 01:39:21 +08:00
|
|
|
git-mv mainporcelain worktree
|
2007-12-02 15:39:19 +08:00
|
|
|
git-name-rev plumbinginterrogators
|
2009-10-09 18:21:58 +08:00
|
|
|
git-notes mainporcelain
|
2012-04-09 08:18:00 +08:00
|
|
|
git-p4 foreignscminterface
|
2007-12-02 15:39:19 +08:00
|
|
|
git-pack-objects plumbingmanipulators
|
|
|
|
git-pack-redundant plumbinginterrogators
|
|
|
|
git-pack-refs ancillarymanipulators
|
|
|
|
git-parse-remote synchelpers
|
|
|
|
git-patch-id purehelpers
|
|
|
|
git-prune ancillarymanipulators
|
|
|
|
git-prune-packed plumbingmanipulators
|
2015-05-22 01:39:21 +08:00
|
|
|
git-pull mainporcelain remote
|
|
|
|
git-push mainporcelain remote
|
2007-12-02 15:39:19 +08:00
|
|
|
git-quiltimport foreignscminterface
|
2018-08-13 19:33:02 +08:00
|
|
|
git-range-diff mainporcelain
|
2007-12-02 15:39:19 +08:00
|
|
|
git-read-tree plumbingmanipulators
|
2015-05-22 01:39:21 +08:00
|
|
|
git-rebase mainporcelain history
|
2007-12-02 15:39:19 +08:00
|
|
|
git-receive-pack synchelpers
|
2018-05-21 02:40:04 +08:00
|
|
|
git-reflog ancillarymanipulators complete
|
|
|
|
git-remote ancillarymanipulators complete
|
|
|
|
git-repack ancillarymanipulators complete
|
|
|
|
git-replace ancillarymanipulators complete
|
|
|
|
git-request-pull foreignscminterface complete
|
2007-12-02 15:39:19 +08:00
|
|
|
git-rerere ancillaryinterrogators
|
help: move git-diff and git-reset to different groups
The third column in command-list.txt determines what group a common
command is printed in 'git help'.
"git reset" is currently in the "work on the current change (see also:
git help everyday)" group. While it's true that "git reset" can
manipulate the index and can be in this group, its unique
functionality is resetting HEAD, which should be the "grow, mark,
tweak history" group.
Moving it there will also avoid the confusion because both 'restore'
and 'reset' are in the same group, next to each other.
While looking at the 'group, mark, tweak history', I realize "git
diff" should not be there. All the commands in this group is about
_changing_ the commit history while "git diff" is a read-only
operation. It fits better in the "examine the history and state" group
(especially when "git status", its close friend, is already there).
This is what we have after the reorganization:
work on the current change (see also: git help everyday)
add Add file contents to the index
mv Move or rename a file, a directory, or a symlink
restore Restore working tree files
rm Remove files from the working tree and from the index
examine the history and state (see also: git help revisions)
bisect Use binary search to find the commit that introduced a bug
diff Show changes between commits, commit and working tree, etc
grep Print lines matching a pattern
log Show commit logs
show Show various types of objects
status Show the working tree status
grow, mark and tweak your common history
branch List, create, or delete branches
commit Record changes to the repository
merge Join two or more development histories together
rebase Reapply commits on top of another base tip
reset Reset current HEAD to the specified state
switch Switch branches
tag Create, list, delete or verify a tag object signed with GPG
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-04-25 17:45:59 +08:00
|
|
|
git-reset mainporcelain history
|
2019-04-25 17:45:45 +08:00
|
|
|
git-restore mainporcelain worktree
|
2007-12-02 15:39:19 +08:00
|
|
|
git-revert mainporcelain
|
|
|
|
git-rev-list plumbinginterrogators
|
2018-10-11 05:37:26 +08:00
|
|
|
git-rev-parse plumbinginterrogators
|
2015-05-22 01:39:21 +08:00
|
|
|
git-rm mainporcelain worktree
|
2018-05-21 02:40:04 +08:00
|
|
|
git-send-email foreignscminterface complete
|
2007-12-02 15:39:19 +08:00
|
|
|
git-send-pack synchingrepositories
|
|
|
|
git-shell synchelpers
|
|
|
|
git-shortlog mainporcelain
|
2015-05-22 01:39:21 +08:00
|
|
|
git-show mainporcelain info
|
2018-05-21 02:40:04 +08:00
|
|
|
git-show-branch ancillaryinterrogators complete
|
2007-12-02 15:39:19 +08:00
|
|
|
git-show-index plumbinginterrogators
|
|
|
|
git-show-ref plumbinginterrogators
|
2012-08-09 02:34:39 +08:00
|
|
|
git-sh-i18n purehelpers
|
2007-12-02 15:39:19 +08:00
|
|
|
git-sh-setup purehelpers
|
2019-11-22 06:04:33 +08:00
|
|
|
git-sparse-checkout mainporcelain worktree
|
2007-12-02 15:39:19 +08:00
|
|
|
git-stash mainporcelain
|
2018-05-21 02:40:04 +08:00
|
|
|
git-stage complete
|
2015-05-22 01:39:21 +08:00
|
|
|
git-status mainporcelain info
|
2007-12-02 15:39:19 +08:00
|
|
|
git-stripspace purehelpers
|
|
|
|
git-submodule mainporcelain
|
|
|
|
git-svn foreignscminterface
|
2019-03-29 18:39:05 +08:00
|
|
|
git-switch mainporcelain history
|
2007-12-02 15:39:19 +08:00
|
|
|
git-symbolic-ref plumbingmanipulators
|
2015-05-22 01:39:21 +08:00
|
|
|
git-tag mainporcelain history
|
2007-12-02 15:39:19 +08:00
|
|
|
git-unpack-file plumbinginterrogators
|
|
|
|
git-unpack-objects plumbingmanipulators
|
|
|
|
git-update-index plumbingmanipulators
|
|
|
|
git-update-ref plumbingmanipulators
|
|
|
|
git-update-server-info synchingrepositories
|
|
|
|
git-upload-archive synchelpers
|
|
|
|
git-upload-pack synchelpers
|
|
|
|
git-var plumbinginterrogators
|
2014-06-23 15:05:49 +08:00
|
|
|
git-verify-commit ancillaryinterrogators
|
2007-12-02 15:39:19 +08:00
|
|
|
git-verify-pack plumbinginterrogators
|
|
|
|
git-verify-tag ancillaryinterrogators
|
2011-10-16 19:07:33 +08:00
|
|
|
gitweb ancillaryinterrogators
|
2018-05-21 02:40:04 +08:00
|
|
|
git-whatchanged ancillaryinterrogators complete
|
2015-06-29 20:51:18 +08:00
|
|
|
git-worktree mainporcelain
|
2007-12-02 15:39:19 +08:00
|
|
|
git-write-tree plumbingmanipulators
|
2018-05-21 02:40:02 +08:00
|
|
|
gitattributes guide
|
|
|
|
gitcli guide
|
|
|
|
gitcore-tutorial guide
|
|
|
|
gitcvs-migration guide
|
|
|
|
gitdiffcore guide
|
|
|
|
giteveryday guide
|
|
|
|
gitglossary guide
|
|
|
|
githooks guide
|
|
|
|
gitignore guide
|
|
|
|
gitmodules guide
|
|
|
|
gitnamespaces guide
|
|
|
|
gitrepository-layout guide
|
|
|
|
gitrevisions guide
|
2019-10-28 21:05:46 +08:00
|
|
|
gitsubmodules guide
|
2018-05-21 02:40:02 +08:00
|
|
|
gittutorial-2 guide
|
|
|
|
gittutorial guide
|
|
|
|
gitworkflows guide
|