diff options
author | Junio C Hamano <junio@kernel.org> | 2011-05-17 06:43:34 +0000 |
---|---|---|
committer | Junio C Hamano <junio@kernel.org> | 2011-05-17 06:43:34 +0000 |
commit | 3d050d664ae8d18bd81b2a9283134954e98024a5 (patch) | |
tree | 162295d648f1c3f73bda2548922ab7c21e5ad634 /git-commit.txt | |
parent | 5397bf085b22da968a5595e44db425de58f163ef (diff) | |
download | git-htmldocs-3d050d664ae8d18bd81b2a9283134954e98024a5.tar.gz |
Autogenerated HTML docs for v1.7.5.1-339-gb602ed
Diffstat (limited to 'git-commit.txt')
-rw-r--r-- | git-commit.txt | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/git-commit.txt b/git-commit.txt index d0534b8c0..7951cb7b0 100644 --- a/git-commit.txt +++ b/git-commit.txt @@ -8,11 +8,12 @@ git-commit - Record changes to the repository SYNOPSIS -------- [verse] -'git commit' [-a | --interactive] [-s] [-v] [-u<mode>] [--amend] [--dry-run] - [(-c | -C | --fixup | --squash) <commit>] [-F <file> | -m <msg>] - [--reset-author] [--allow-empty] [--allow-empty-message] [--no-verify] - [-e] [--author=<author>] [--date=<date>] [--cleanup=<mode>] - [--status | --no-status] [-i | -o] [--] [<file>...] +'git commit' [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend] + [--dry-run] [(-c | -C | --fixup | --squash) <commit>] + [-F <file> | -m <msg>] [--reset-author] [--allow-empty] + [--allow-empty-message] [--no-verify] [-e] [--author=<author>] + [--date=<date>] [--cleanup=<mode>] [--status | --no-status] + [-i | -o] [--] [<file>...] DESCRIPTION ----------- @@ -39,9 +40,10 @@ The content to be added can be specified in several ways: that have been removed from the working tree, and then perform the actual commit; -5. by using the --interactive switch with the 'commit' command to decide one - by one which files should be part of the commit, before finalizing the - operation. Currently, this is done by invoking 'git add --interactive'. +5. by using the --interactive or --patch switches with the 'commit' command + to decide one by one which files or hunks should be part of the commit, + before finalizing the operation. See the ``Interactive Mode`` section of + linkgit:git-add[1] to learn how to operate these modes. The `--dry-run` option can be used to obtain a summary of what is included by any of the above for the next @@ -59,6 +61,12 @@ OPTIONS been modified and deleted, but new files you have not told git about are not affected. +-p:: +--patch:: + Use the interactive patch selection interface to chose + which changes to commit. See linkgit:git-add[1] for + details. + -C <commit>:: --reuse-message=<commit>:: Take an existing commit object, and reuse the log message |