2018-05-20 21:40:03 +03: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 11:46:41 +03:00
|
|
|
### command list (do not change this line, also do not change alignment)
|
|
|
|
# command name category [category] [category]
|
2015-05-21 20:39:21 +03:00
|
|
|
git-add mainporcelain worktree
|
2007-12-02 10:39:19 +03:00
|
|
|
git-am mainporcelain
|
|
|
|
git-annotate ancillaryinterrogators
|
2018-05-20 21:40:04 +03:00
|
|
|
git-apply plumbingmanipulators complete
|
2007-12-02 10:39:19 +03:00
|
|
|
git-archimport foreignscminterface
|
|
|
|
git-archive mainporcelain
|
2015-05-21 20:39:21 +03:00
|
|
|
git-bisect mainporcelain info
|
2018-05-20 21:40:04 +03:00
|
|
|
git-blame ancillaryinterrogators complete
|
2015-05-21 20:39:21 +03:00
|
|
|
git-branch mainporcelain history
|
2020-04-17 00:18:04 +03:00
|
|
|
git-bugreport ancillaryinterrogators
|
2007-12-02 10:39:19 +03:00
|
|
|
git-bundle mainporcelain
|
|
|
|
git-cat-file plumbinginterrogators
|
|
|
|
git-check-attr purehelpers
|
2013-01-06 20:58:13 +04:00
|
|
|
git-check-ignore purehelpers
|
2013-07-13 04:53:10 +04:00
|
|
|
git-check-mailmap purehelpers
|
2019-04-25 12:45:58 +03:00
|
|
|
git-checkout mainporcelain
|
2007-12-02 10:39:19 +03:00
|
|
|
git-checkout-index plumbingmanipulators
|
|
|
|
git-check-ref-format purehelpers
|
2018-10-11 21:33:50 +03:00
|
|
|
git-cherry plumbinginterrogators complete
|
2007-12-02 10:39:19 +03:00
|
|
|
git-cherry-pick mainporcelain
|
|
|
|
git-citool mainporcelain
|
|
|
|
git-clean mainporcelain
|
2015-05-21 20:39:21 +03:00
|
|
|
git-clone mainporcelain init
|
2012-04-21 08:44:32 +04:00
|
|
|
git-column purehelpers
|
2015-05-21 20:39:21 +03:00
|
|
|
git-commit mainporcelain history
|
2018-04-02 23:34:18 +03:00
|
|
|
git-commit-graph plumbingmanipulators
|
2007-12-02 10:39:19 +03:00
|
|
|
git-commit-tree plumbingmanipulators
|
2018-05-20 21:40:04 +03:00
|
|
|
git-config ancillarymanipulators complete
|
2007-12-02 10:39:19 +03:00
|
|
|
git-count-objects ancillaryinterrogators
|
2012-08-08 11:58:27 +04:00
|
|
|
git-credential purehelpers
|
2012-08-08 22:34:49 +04:00
|
|
|
git-credential-cache purehelpers
|
|
|
|
git-credential-store purehelpers
|
2007-12-02 10:39:19 +03: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 12:45:59 +03:00
|
|
|
git-diff mainporcelain info
|
2007-12-02 10:39:19 +03:00
|
|
|
git-diff-files plumbinginterrogators
|
|
|
|
git-diff-index plumbinginterrogators
|
|
|
|
git-diff-tree plumbinginterrogators
|
2018-05-20 21:40:04 +03:00
|
|
|
git-difftool ancillaryinterrogators complete
|
2015-05-08 22:29:35 +03:00
|
|
|
git-fast-export ancillarymanipulators
|
|
|
|
git-fast-import ancillarymanipulators
|
2015-05-21 20:39:21 +03:00
|
|
|
git-fetch mainporcelain remote
|
2007-12-02 10:39:19 +03:00
|
|
|
git-fetch-pack synchingrepositories
|
|
|
|
git-filter-branch ancillarymanipulators
|
|
|
|
git-fmt-merge-msg purehelpers
|
|
|
|
git-for-each-ref plumbinginterrogators
|
2020-09-11 20:49:16 +03:00
|
|
|
git-for-each-repo plumbinginterrogators
|
2007-12-02 10:39:19 +03:00
|
|
|
git-format-patch mainporcelain
|
2018-05-20 21:40:04 +03:00
|
|
|
git-fsck ancillaryinterrogators complete
|
2007-12-02 10:39:19 +03:00
|
|
|
git-gc mainporcelain
|
2018-10-11 21:39:32 +03:00
|
|
|
git-get-tar-commit-id plumbinginterrogators
|
2015-05-21 20:39:21 +03:00
|
|
|
git-grep mainporcelain info
|
2007-12-02 10:39:19 +03:00
|
|
|
git-gui mainporcelain
|
|
|
|
git-hash-object plumbingmanipulators
|
2018-05-20 21:40:04 +03:00
|
|
|
git-help ancillaryinterrogators complete
|
2009-12-26 20:01:07 +03:00
|
|
|
git-http-backend synchingrepositories
|
2007-12-02 10:39:19 +03:00
|
|
|
git-http-fetch synchelpers
|
|
|
|
git-http-push synchelpers
|
|
|
|
git-imap-send foreignscminterface
|
|
|
|
git-index-pack plumbingmanipulators
|
2015-05-21 20:39:21 +03:00
|
|
|
git-init mainporcelain init
|
2018-05-20 21:40:04 +03:00
|
|
|
git-instaweb ancillaryinterrogators complete
|
2014-10-13 22:16:33 +04:00
|
|
|
git-interpret-trailers purehelpers
|
2007-12-02 10:39:19 +03:00
|
|
|
gitk mainporcelain
|
2015-05-21 20:39:21 +03:00
|
|
|
git-log mainporcelain info
|
2007-12-02 10:39:19 +03:00
|
|
|
git-ls-files plumbinginterrogators
|
|
|
|
git-ls-remote plumbinginterrogators
|
|
|
|
git-ls-tree plumbinginterrogators
|
|
|
|
git-mailinfo purehelpers
|
|
|
|
git-mailsplit purehelpers
|
maintenance: create basic maintenance runner
The 'gc' builtin is our current entrypoint for automatically maintaining
a repository. This one tool does many operations, such as repacking the
repository, packing refs, and rewriting the commit-graph file. The name
implies it performs "garbage collection" which means several different
things, and some users may not want to use this operation that rewrites
the entire object database.
Create a new 'maintenance' builtin that will become a more general-
purpose command. To start, it will only support the 'run' subcommand,
but will later expand to add subcommands for scheduling maintenance in
the background.
For now, the 'maintenance' builtin is a thin shim over the 'gc' builtin.
In fact, the only option is the '--auto' toggle, which is handed
directly to the 'gc' builtin. The current change is isolated to this
simple operation to prevent more interesting logic from being lost in
all of the boilerplate of adding a new builtin.
Use existing builtin/gc.c file because we want to share code between the
two builtins. It is possible that we will have 'maintenance' replace the
'gc' builtin entirely at some point, leaving 'git gc' as an alias for
some specific arguments to 'git maintenance run'.
Create a new test_subcommand helper that allows us to test if a certain
subcommand was run. It requires storing the GIT_TRACE2_EVENT logs in a
file. A negation mode is available that will be used in later tests.
Helped-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2020-09-17 21:11:42 +03:00
|
|
|
git-maintenance mainporcelain
|
2015-05-21 20:39:21 +03:00
|
|
|
git-merge mainporcelain history
|
2007-12-02 10:39:19 +03:00
|
|
|
git-merge-base plumbinginterrogators
|
|
|
|
git-merge-file plumbingmanipulators
|
|
|
|
git-merge-index plumbingmanipulators
|
|
|
|
git-merge-one-file purehelpers
|
2018-05-20 21:40:04 +03:00
|
|
|
git-mergetool ancillarymanipulators complete
|
2007-12-02 10:39:19 +03:00
|
|
|
git-merge-tree ancillaryinterrogators
|
2018-07-12 22:39:20 +03:00
|
|
|
git-multi-pack-index plumbingmanipulators
|
2007-12-02 10:39:19 +03:00
|
|
|
git-mktag plumbingmanipulators
|
|
|
|
git-mktree plumbingmanipulators
|
2015-05-21 20:39:21 +03:00
|
|
|
git-mv mainporcelain worktree
|
2007-12-02 10:39:19 +03:00
|
|
|
git-name-rev plumbinginterrogators
|
2009-10-09 14:21:58 +04:00
|
|
|
git-notes mainporcelain
|
2012-04-09 04:18:00 +04:00
|
|
|
git-p4 foreignscminterface
|
2007-12-02 10:39:19 +03:00
|
|
|
git-pack-objects plumbingmanipulators
|
|
|
|
git-pack-redundant plumbinginterrogators
|
|
|
|
git-pack-refs ancillarymanipulators
|
|
|
|
git-patch-id purehelpers
|
2020-06-22 03:13:55 +03:00
|
|
|
git-prune ancillarymanipulators complete
|
2007-12-02 10:39:19 +03:00
|
|
|
git-prune-packed plumbingmanipulators
|
2015-05-21 20:39:21 +03:00
|
|
|
git-pull mainporcelain remote
|
|
|
|
git-push mainporcelain remote
|
2007-12-02 10:39:19 +03:00
|
|
|
git-quiltimport foreignscminterface
|
2018-08-13 14:33:02 +03:00
|
|
|
git-range-diff mainporcelain
|
2007-12-02 10:39:19 +03:00
|
|
|
git-read-tree plumbingmanipulators
|
2015-05-21 20:39:21 +03:00
|
|
|
git-rebase mainporcelain history
|
2007-12-02 10:39:19 +03:00
|
|
|
git-receive-pack synchelpers
|
2018-05-20 21:40:04 +03: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 10:39:19 +03: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 12:45:59 +03:00
|
|
|
git-reset mainporcelain history
|
2019-04-25 12:45:45 +03:00
|
|
|
git-restore mainporcelain worktree
|
2007-12-02 10:39:19 +03:00
|
|
|
git-revert mainporcelain
|
|
|
|
git-rev-list plumbinginterrogators
|
2018-10-11 00:37:26 +03:00
|
|
|
git-rev-parse plumbinginterrogators
|
2015-05-21 20:39:21 +03:00
|
|
|
git-rm mainporcelain worktree
|
2018-05-20 21:40:04 +03:00
|
|
|
git-send-email foreignscminterface complete
|
2007-12-02 10:39:19 +03:00
|
|
|
git-send-pack synchingrepositories
|
|
|
|
git-shell synchelpers
|
|
|
|
git-shortlog mainporcelain
|
2015-05-21 20:39:21 +03:00
|
|
|
git-show mainporcelain info
|
2018-05-20 21:40:04 +03:00
|
|
|
git-show-branch ancillaryinterrogators complete
|
2007-12-02 10:39:19 +03:00
|
|
|
git-show-index plumbinginterrogators
|
|
|
|
git-show-ref plumbinginterrogators
|
2012-08-08 22:34:39 +04:00
|
|
|
git-sh-i18n purehelpers
|
2007-12-02 10:39:19 +03:00
|
|
|
git-sh-setup purehelpers
|
2019-11-22 01:04:33 +03:00
|
|
|
git-sparse-checkout mainporcelain worktree
|
2007-12-02 10:39:19 +03:00
|
|
|
git-stash mainporcelain
|
2018-05-20 21:40:04 +03:00
|
|
|
git-stage complete
|
2015-05-21 20:39:21 +03:00
|
|
|
git-status mainporcelain info
|
2007-12-02 10:39:19 +03:00
|
|
|
git-stripspace purehelpers
|
|
|
|
git-submodule mainporcelain
|
|
|
|
git-svn foreignscminterface
|
2019-03-29 13:39:05 +03:00
|
|
|
git-switch mainporcelain history
|
2007-12-02 10:39:19 +03:00
|
|
|
git-symbolic-ref plumbingmanipulators
|
2015-05-21 20:39:21 +03:00
|
|
|
git-tag mainporcelain history
|
2007-12-02 10:39:19 +03: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 11:05:49 +04:00
|
|
|
git-verify-commit ancillaryinterrogators
|
2007-12-02 10:39:19 +03:00
|
|
|
git-verify-pack plumbinginterrogators
|
|
|
|
git-verify-tag ancillaryinterrogators
|
2011-10-16 15:07:33 +04:00
|
|
|
gitweb ancillaryinterrogators
|
2018-05-20 21:40:04 +03:00
|
|
|
git-whatchanged ancillaryinterrogators complete
|
2015-06-29 15:51:18 +03:00
|
|
|
git-worktree mainporcelain
|
2007-12-02 10:39:19 +03:00
|
|
|
git-write-tree plumbingmanipulators
|
2018-05-20 21:40:02 +03:00
|
|
|
gitattributes guide
|
|
|
|
gitcli guide
|
|
|
|
gitcore-tutorial guide
|
2020-08-05 04:19:04 +03:00
|
|
|
gitcredentials guide
|
2018-05-20 21:40:02 +03:00
|
|
|
gitcvs-migration guide
|
|
|
|
gitdiffcore guide
|
|
|
|
giteveryday guide
|
2020-05-20 17:44:48 +03:00
|
|
|
gitfaq guide
|
2018-05-20 21:40:02 +03:00
|
|
|
gitglossary guide
|
|
|
|
githooks guide
|
|
|
|
gitignore guide
|
|
|
|
gitmodules guide
|
|
|
|
gitnamespaces guide
|
2020-08-05 04:19:04 +03:00
|
|
|
gitremote-helpers guide
|
2018-05-20 21:40:02 +03:00
|
|
|
gitrepository-layout guide
|
|
|
|
gitrevisions guide
|
2019-10-28 16:05:46 +03:00
|
|
|
gitsubmodules guide
|
2018-05-20 21:40:02 +03:00
|
|
|
gittutorial-2 guide
|
|
|
|
gittutorial guide
|
|
|
|
gitworkflows guide
|