Merge branch 'ah/misc-doc-updates'
authorJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2018 05:38:23 +0000 (14:38 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2018 05:38:23 +0000 (14:38 +0900)
Misc doc fixes.

* ah/misc-doc-updates:
doc: normalize [--options] to [options] in git-diff
doc: add note about shell quoting to revision.txt
git-svn: remove ''--add-author-from' for 'commit-diff'
doc: add '-d' and '-o' for 'git push'
doc: clarify ignore rules for git ls-files
doc: align 'diff --no-index' in text and synopsis
doc: improve formatting in githooks.txt

1  2 
Documentation/git-ls-files.txt
Documentation/git-push.txt
Documentation/git-svn.txt
index 0f2cee7c265c75a592e43506a1f11d295b69ca06,f3474b2ede0b61d62fef2c52c55d6d64cac170b9..5298f1bc3052f47e390eee780efe665083744309
@@@ -53,7 -53,8 +53,8 @@@ OPTION
        Show only ignored files in the output. When showing files in the
        index, print only those matched by an exclude pattern. When
        showing "other" files, show only those matched by an exclude
-       pattern.
+       pattern. Standard ignore rules are not automatically activated,
+       therefore at least one of the `--exclude*` options is required.
  
  -s::
  --stage::
@@@ -183,7 -184,7 +184,7 @@@ followed by the  ("attr/<eolattr>")
        Files to show. If no files are given all files which match the other
        specified criteria are shown.
  
 -Output
 +OUTPUT
  ------
  'git ls-files' just outputs the filenames unless `--stage` is specified in
  which case it outputs:
@@@ -208,7 -209,7 +209,7 @@@ quoted as explained for the configurati
  verbatim and the line is terminated by a NUL byte.
  
  
 -Exclude Patterns
 +EXCLUDE PATTERNS
  ----------------
  
  'git ls-files' can use a list of "exclude patterns" when
index 02f65013992fd6d98d8fd7654ecbda4bb6ca1f40,f2bbda6e3200ec7911318f755e41c42c1194d212..55277a97811fa6933c76c1bd2c96114672f6d5cd
@@@ -11,7 -11,7 +11,7 @@@ SYNOPSI
  [verse]
  'git push' [--all | --mirror | --tags] [--follow-tags] [--atomic] [-n | --dry-run] [--receive-pack=<git-receive-pack>]
           [--repo=<repository>] [-f | --force] [-d | --delete] [--prune] [-v | --verbose]
-          [-u | --set-upstream] [--push-option=<string>]
+          [-u | --set-upstream] [-o <string> | --push-option=<string>]
           [--[no-]signed|--signed=(true|false|if-asked)]
           [--force-with-lease[=<refname>[:<expect>]]]
           [--no-verify] [<repository> [<refspec>...]]
@@@ -123,6 -123,7 +123,7 @@@ already exists on the remote side
        will be tab-separated and sent to stdout instead of stderr.  The full
        symbolic names of the refs will be given.
  
+ -d::
  --delete::
        All listed refs are deleted from the remote repository. This is
        the same as prefixing all refs with a colon.
@@@ -300,7 -301,7 +301,7 @@@ origin +master` to force a push to the 
        These options are passed to linkgit:git-send-pack[1]. A thin transfer
        significantly reduces the amount of sent data when the sender and
        receiver share many of the same objects in common. The default is
 -      \--thin.
 +      `--thin`.
  
  -q::
  --quiet::
@@@ -423,7 -424,7 +424,7 @@@ reason:
        refs, no explanation is needed. For a failed ref, the reason for
        failure is described.
  
 -Note about fast-forwards
 +NOTE ABOUT FAST-FORWARDS
  ------------------------
  
  When an update changes a branch (or more in general, a ref) that used to
@@@ -510,7 -511,7 +511,7 @@@ overwrite it. In other words, "git pus
  a case where you do mean to lose history.
  
  
 -Examples
 +EXAMPLES
  --------
  
  `git push`::
index d59379ee2344690926f5e0bee282c81445d3061d,11aefadf7a100177819f53a20aa099fb6db438a1..e9615951d22f724c30abdfc92485f5506a08249b
@@@ -635,8 -635,7 +635,8 @@@ config key: svn.findcopiesharde
  
  -A<filename>::
  --authors-file=<filename>::
 -      Syntax is compatible with the file used by 'git cvsimport':
 +      Syntax is compatible with the file used by 'git cvsimport' but
 +      an empty email address can be supplied with '<>':
  +
  ------------------------------------------------------------------------
        loginname = Joe User <user@example.com>
@@@ -655,14 -654,8 +655,14 @@@ config key: svn.authorsfil
        If this option is specified, for each SVN committer name that
        does not exist in the authors file, the given file is executed
        with the committer name as the first argument.  The program is
 -      expected to return a single line of the form "Name <email>",
 -      which will be treated as if included in the authors file.
 +      expected to return a single line of the form "Name <email>" or
 +      "Name <>", which will be treated as if included in the authors
 +      file.
 ++
 +Due to historical reasons a relative 'filename' is first searched
 +relative to the current directory for 'init' and 'clone' and relative
 +to the root of the working tree for 'fetch'. If 'filename' is
 +not found, it is searched like any other command in '$PATH'.
  +
  [verse]
  config key: svn.authorsProg
@@@ -707,7 -700,7 +707,7 @@@ creating the branch or tag
  config key: svn.useLogAuthor
  
  --add-author-from::
-       When committing to svn from Git (as part of 'commit-diff', 'set-tree' or 'dcommit'
+       When committing to svn from Git (as part of 'set-tree' or 'dcommit'
        operations), if the existing log message doesn't already have a
        `From:` or `Signed-off-by:` line, append a `From:` line based on the
        Git commit's author string.  If you use this, then `--use-log-author`