Merge branch 'rs/pretty-format-color-doc-fix' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 28 Oct 2016 16:01:23 +0000 (09:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Oct 2016 16:01:23 +0000 (09:01 -0700)
Small doc update.

* rs/pretty-format-color-doc-fix:
pretty: fix document link for color specification

1  2 
Documentation/pretty-formats.txt
index a942d57f73a8502903b888d65d09a677816a5f0f,867b159e8f456f05c878535c951504068a7a9a19..69c289dd0cdb2b344b7051d25c4889b824e21f9c
@@@ -147,14 -147,8 +147,14 @@@ endif::git-rev-list[
    "U" for a good signature with unknown validity and "N" for no signature
  - '%GS': show the name of the signer for a signed commit
  - '%GK': show the key used to sign a signed commit
 -- '%gD': reflog selector, e.g., `refs/stash@{1}`
 -- '%gd': shortened reflog selector, e.g., `stash@{1}`
 +- '%gD': reflog selector, e.g., `refs/stash@{1}` or
 +  `refs/stash@{2 minutes ago`}; the format follows the rules described
 +  for the `-g` option. The portion before the `@` is the refname as
 +  given on the command line (so `git log -g refs/heads/master` would
 +  yield `refs/heads/master@{0}`).
 +- '%gd': shortened reflog selector; same as `%gD`, but the refname
 +  portion is shortened for human readability (so `refs/heads/master`
 +  becomes just `master`).
  - '%gn': reflog identity name
  - '%gN': reflog identity name (respecting .mailmap, see
    linkgit:git-shortlog[1] or linkgit:git-blame[1])
  - '%Cgreen': switch color to green
  - '%Cblue': switch color to blue
  - '%Creset': reset color
- - '%C(...)': color specification, as described in color.branch.* config option;
+ - '%C(...)': color specification, as described under Values in the
+   "CONFIGURATION FILE" section of linkgit:git-config[1];
    adding `auto,` at the beginning will emit color only when colors are
    enabled for log output (by `color.diff`, `color.ui`, or `--color`, and
    respecting the `auto` settings of the former if we are going to a
    terminal). `auto` alone (i.e. `%C(auto)`) will turn on auto coloring
    on the next placeholders until the color is switched again.
 -- '%m': left, right or boundary mark
 +- '%m': left (`<`), right (`>`) or boundary (`-`) mark
  - '%n': newline
  - '%%': a raw '%'
  - '%x00': print a byte from a hex code