Merge branch 'as/maint-doc-fix-no-post-rewrite'
authorJunio C Hamano <gitster@pobox.com>
Thu, 15 Nov 2012 18:24:29 +0000 (10:24 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Nov 2012 18:24:29 +0000 (10:24 -0800)
* as/maint-doc-fix-no-post-rewrite:
commit: fixup misplacement of --no-post-rewrite description

1  2 
Documentation/git-commit.txt
index 0295890621117ae3981485eec5872d3dcfb23af6,9e327cf5c0921e9c7c3a7858b216ef276d4eaf71..b620aae411499170c63b92f1c7e80793fcc0de5b
@@@ -13,7 -13,7 +13,7 @@@ SYNOPSI
           [-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>...]
 +         [-i | -o] [-S[<keyid>]] [--] [<file>...]
  
  DESCRIPTION
  -----------
@@@ -42,7 -42,7 +42,7 @@@ The content to be added can be specifie
  
  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
 +   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
@@@ -109,10 -109,6 +109,10 @@@ OPTION
        format. See linkgit:git-status[1] for details. Implies
        `--dry-run`.
  
 +--long::
 +      When doing a dry-run, give the output in a the long-format.
 +      Implies `--dry-run`.
 +
  -z::
  --null::
        When showing `short` or `porcelain` status output, terminate
        current tip -- if it was a merge, it will have the parents of
        the current tip as parents -- so the current top commit is
        discarded.
- --no-post-rewrite::
-       Bypass the post-rewrite hook.
  +
  --
  It is a rough equivalent for:
@@@ -217,6 -209,9 +213,9 @@@ You should understand the implications 
  amend a commit that has already been published.  (See the "RECOVERING
  FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)
  
+ --no-post-rewrite::
+       Bypass the post-rewrite hook.
  -i::
  --include::
        Before making a commit out of staged contents so far,
@@@ -280,10 -275,6 +279,10 @@@ configuration variable documented in li
        commit message template when using an editor to prepare the
        default commit message.
  
 +-S[<keyid>]::
 +--gpg-sign[=<keyid>]::
 +      GPG-sign commit.
 +
  \--::
        Do not interpret any more arguments as options.
  
@@@ -303,7 -294,7 +302,7 @@@ When recording your own work, the conte
  your working tree are temporarily stored to a staging area
  called the "index" with 'git add'.  A file can be
  reverted back, only in the index but not in the working tree,
 -to that of the last commit with `git reset HEAD \-- <file>`,
 +to that of the last commit with `git reset HEAD -- <file>`,
  which effectively reverts 'git add' and prevents the changes to
  this file from participating in the next commit.  After building
  the state to be committed incrementally with these commands,
@@@ -397,10 -388,8 +396,10 @@@ DISCUSSIO
  Though not required, it's a good idea to begin the commit message
  with a single short (less than 50 character) line summarizing the
  change, followed by a blank line and then a more thorough description.
 -Tools that turn commits into email, for example, use the first line
 -on the Subject: line and the rest of the commit in the body.
 +The text up to the first blank line in a commit message is treated
 +as the commit title, and that title is used throughout git.
 +For example, linkgit:git-format-patch[1] turns a commit into email, and it uses
 +the title on the Subject line and the rest of the commit in the body.
  
  include::i18n.txt[]
  
@@@ -417,15 -406,6 +416,15 @@@ This command can run `commit-msg`, `pre
  and `post-commit` hooks.  See linkgit:githooks[5] for more
  information.
  
 +FILES
 +-----
 +
 +`$GIT_DIR/COMMIT_EDITMSG`::
 +      This file contains the commit message of a commit in progress.
 +      If `git commit` exits due to an error before creating a commit,
 +      any commit message that has been provided by the user (e.g., in
 +      an editor session) will be available in this file, but will be
 +      overwritten by the next invocation of `git commit`.
  
  SEE ALSO
  --------