summaryrefslogtreecommitdiffstats
path: root/diff-options.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-09-12 17:54:09 -0700
committerJunio C Hamano <gitster@pobox.com>2016-09-12 17:54:09 -0700
commitcd451662c9139640c5676982f6c88f89e16c23b2 (patch)
treeb1ae28586fe8ebd5064cc527f52d24b7cf5116cc /diff-options.txt
parente37049f6c527b79d663ec816d053581d3cae9131 (diff)
downloadgit-htmldocs-cd451662c9139640c5676982f6c88f89e16c23b2.tar.gz
Autogenerated HTML docs for v2.10.0-129-g35f6
Diffstat (limited to 'diff-options.txt')
-rw-r--r--diff-options.txt20
1 files changed, 13 insertions, 7 deletions
diff --git a/diff-options.txt b/diff-options.txt
index 705a87394..7805a0cca 100644
--- a/diff-options.txt
+++ b/diff-options.txt
@@ -210,13 +210,16 @@ any of those replacements occurred.
of the `--diff-filter` option on what the status letters mean.
--submodule[=<format>]::
- Specify how differences in submodules are shown. When `--submodule`
- or `--submodule=log` is given, the 'log' format is used. This format lists
- the commits in the range like linkgit:git-submodule[1] `summary` does.
- Omitting the `--submodule` option or specifying `--submodule=short`,
- uses the 'short' format. This format just shows the names of the commits
- at the beginning and end of the range. Can be tweaked via the
- `diff.submodule` configuration variable.
+ Specify how differences in submodules are shown. When specifying
+ `--submodule=short` the 'short' format is used. This format just
+ shows the names of the commits at the beginning and end of the range.
+ When `--submodule` or `--submodule=log` is specified, the 'log'
+ format is used. This format lists the commits in the range like
+ linkgit:git-submodule[1] `summary` does. When `--submodule=diff`
+ is specified, the 'diff' format is used. This format shows an
+ inline diff of the changes in the submodule contents between the
+ commit range. Defaults to `diff.submodule` or the 'short' format
+ if the config option is unset.
--color[=<when>]::
Show colored diff.
@@ -569,5 +572,8 @@ endif::git-format-patch[]
--no-prefix::
Do not show any source or destination prefix.
+--line-prefix=<prefix>::
+ Prepend an additional prefix to every line of output.
+
For more detailed explanation on these common options, see also
linkgit:gitdiffcore[7].