<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/diff-options.txt, branch v2.29.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.29.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.29.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2020-08-31T22:49:46Z</updated>
<entry>
<title>Merge branch 'dd/diff-customize-index-line-abbrev'</title>
<updated>2020-08-31T22:49:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-08-31T22:49:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=096c948dabc7d13a6cc81a8ad803fd96fc1c5d15'/>
<id>urn:sha1:096c948dabc7d13a6cc81a8ad803fd96fc1c5d15</id>
<content type='text'>
The output from the "diff" family of the commands had abbreviated
object names of blobs involved in the patch, but its length was not
affected by the --abbrev option.  Now it is.

* dd/diff-customize-index-line-abbrev:
  diff: index-line: respect --abbrev in object's name
  t4013: improve diff-post-processor logic
</content>
</entry>
<entry>
<title>diff: index-line: respect --abbrev in object's name</title>
<updated>2020-08-21T19:43:05Z</updated>
<author>
<name>Đoàn Trần Công Danh</name>
<email>congdanhqx@gmail.com</email>
</author>
<published>2020-08-21T11:51:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3046c7f69a6337a971b219d047b8110e3f9ea971'/>
<id>urn:sha1:3046c7f69a6337a971b219d047b8110e3f9ea971</id>
<content type='text'>
A handful of Git's commands respect `--abbrev' for customizing length
of abbreviation of object names.

For diff-family, Git supports 2 different options for 2 different
purposes, `--full-index' for showing diff-patch object's name in full,
and `--abbrev' to customize the length of object names in diff-raw and
diff-tree header lines, without any options to customise the length of
object names in diff-patch format. When working with diff-patch format,
we only have two options, either full index, or default abbrev length.

Although, that behaviour is documented, it doesn't stop users from
trying to use `--abbrev' with the hope of customising diff-patch's
objects' name's abbreviation.

Let's allow the blob object names shown on the "index" line to be
abbreviated to arbitrary length given via the "--abbrev" option.

To preserve backward compatibility with old script that specify both
`--full-index' and `--abbrev', always show full object id
if `--full-index' is specified.

Signed-off-by: Đoàn Trần Công Danh &lt;congdanhqx@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc/git-log: move "-t" into diff-options list</title>
<updated>2020-07-29T20:44:03Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2020-07-29T20:12:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9a6d515fc38abc36a94228f2b96813e1b07c0059'/>
<id>urn:sha1:9a6d515fc38abc36a94228f2b96813e1b07c0059</id>
<content type='text'>
The "-t" option is infrequently used; it doesn't deserve a spot near the
top of the options list. Let's push it down into the diff-options
include, near the definition of --raw.

We'll protect it with a git-log ifdef, since it doesn't make any sense
for non-tree diff commands. Note that this means it also shows up in
git-show, but that's a good thing; it applies equally well there.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: add config option relative</title>
<updated>2020-05-24T23:23:59Z</updated>
<author>
<name>Laurent Arnoud</name>
<email>laurent@spkdev.net</email>
</author>
<published>2020-05-22T10:46:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c28ded83fc95be8157c851c8be179733a7d4b137'/>
<id>urn:sha1:c28ded83fc95be8157c851c8be179733a7d4b137</id>
<content type='text'>
The `diff.relative` boolean option set to `true` shows only changes in
the current directory/value specified by the `path` argument of the
`relative` option and shows pathnames relative to the aforementioned
directory.

Teach `--no-relative` to override earlier `--relative`

Add for git-format-patch(1) options documentation `--relative` and
`--no-relative`

Signed-off-by: Laurent Arnoud &lt;laurent@spkdev.net&gt;
Acked-by: Đoàn Trần Công Danh &lt;congdanhqx@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff-options.txt: avoid "regex" overload in example</title>
<updated>2020-02-09T17:25:24Z</updated>
<author>
<name>Martin Ågren</name>
<email>martin.agren@gmail.com</email>
</author>
<published>2020-02-06T20:53:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9299f84921e0bd076cf998aa852fadb73627756f'/>
<id>urn:sha1:9299f84921e0bd076cf998aa852fadb73627756f</id>
<content type='text'>
When we exemplify the difference between `-G` and `-S` (using
`--pickaxe-regex`), we do so using an example diff and git-diff
invocation involving "regexec", "regexp", "regmatch", ...

The example is correct, but we can make it easier to untangle by
avoiding writing "regex.*" unless it's really needed to make our point.

Use some made-up, non-regexy words instead.

Reported-by: Adam Dinwoodie &lt;adam@dinwoodie.org&gt;
Signed-off-by: Martin Ågren &lt;martin.agren@gmail.com&gt;
Reviewed-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/diff-parseopt-3'</title>
<updated>2019-04-16T10:28:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-04-16T10:28:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8a9a837a639cb4ef4c0b84c277aec2c9eb7ec58d'/>
<id>urn:sha1:8a9a837a639cb4ef4c0b84c277aec2c9eb7ec58d</id>
<content type='text'>
Third batch to teach the diff machinery to use the parse-options
API.

* nd/diff-parseopt-3:
  diff-parseopt: convert --submodule
  diff-parseopt: convert --ignore-submodules
  diff-parseopt: convert --textconv
  diff-parseopt: convert --ext-diff
  diff-parseopt: convert --quiet
  diff-parseopt: convert --exit-code
  diff-parseopt: convert --color-words
  diff-parseopt: convert --word-diff-regex
  diff-parseopt: convert --word-diff
  diff-parseopt: convert --[no-]color
  diff-parseopt: convert --[no-]follow
  diff-parseopt: convert -R
  diff-parseopt: convert -a|--text
  diff-parseopt: convert --full-index
  diff-parseopt: convert --binary
  diff-parseopt: convert --anchored
  diff-parseopt: convert --diff-algorithm
  diff-parseopt: convert --histogram
  diff-parseopt: convert --patience
  diff-parseopt: convert --[no-]indent-heuristic
</content>
</entry>
<entry>
<title>Merge branch 'nd/diff-parseopt-2'</title>
<updated>2019-03-07T00:59:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-03-07T00:59:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4ab0f138577aded469cded8760065ea2095959de'/>
<id>urn:sha1:4ab0f138577aded469cded8760065ea2095959de</id>
<content type='text'>
Second batch to teach the diff machinery to use the parse-options
API.

* nd/diff-parseopt-2: (21 commits)
  diff-parseopt: convert --ignore-some-changes
  diff-parseopt: convert --[no-]minimal
  diff-parseopt: convert --relative
  diff-parseopt: convert --no-renames|--[no--rename-empty
  diff-parseopt: convert --find-copies-harder
  diff-parseopt: convert -C|--find-copies
  diff-parseopt: convert -D|--irreversible-delete
  diff-parseopt: convert -M|--find-renames
  diff-parseopt: convert -B|--break-rewrites
  diff-parseopt: convert --output-*
  diff-parseopt: convert --[no-]compact-summary
  diff-parseopt: convert --stat*
  diff-parseopt: convert -s|--no-patch
  diff-parseopt: convert --name-status
  diff-parseopt: convert --name-only
  diff-parseopt: convert --patch-with-stat
  diff-parseopt: convert --summary
  diff-parseopt: convert --check
  diff-parseopt: convert --dirstat and friends
  diff-parseopt: convert --numstat and --shortstat
  ...
</content>
</entry>
<entry>
<title>Merge branch 'nd/diff-parseopt'</title>
<updated>2019-03-07T00:59:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-03-07T00:59:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=54b469b9e9a9f276a5980265cd2abeb003cb6bf3'/>
<id>urn:sha1:54b469b9e9a9f276a5980265cd2abeb003cb6bf3</id>
<content type='text'>
The diff machinery, one of the oldest parts of the system, which
long predates the parse-options API, uses fairly long and complex
handcrafted option parser.  This is being rewritten to use the
parse-options API.

* nd/diff-parseopt:
  diff.c: convert --raw
  diff.c: convert -W|--[no-]function-context
  diff.c: convert -U|--unified
  diff.c: convert -u|-p|--patch
  diff.c: prepare to use parse_options() for parsing
  diff.h: avoid bit fields in struct diff_flags
  diff.h: keep forward struct declarations sorted
  parse-options: allow ll_callback with OPTION_CALLBACK
  parse-options: avoid magic return codes
  parse-options: stop abusing 'callback' for lowlevel callbacks
  parse-options: add OPT_BITOP()
  parse-options: disable option abbreviation with PARSE_OPT_KEEP_UNKNOWN
  parse-options: add one-shot mode
  parse-options.h: remove extern on function prototypes
</content>
</entry>
<entry>
<title>diff-parseopt: convert --binary</title>
<updated>2019-03-06T23:02:21Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2019-03-05T12:30:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d9af6f4dac4079e0ea14a86cbdf6790c1586fce'/>
<id>urn:sha1:6d9af6f4dac4079e0ea14a86cbdf6790c1586fce</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff-parseopt: convert --no-renames|--[no--rename-empty</title>
<updated>2019-02-21T23:16:59Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2019-02-21T11:16:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cdc43eb0b871992b42cff02ea9fe818c812c6dca'/>
<id>urn:sha1:cdc43eb0b871992b42cff02ea9fe818c812c6dca</id>
<content type='text'>
For --rename-empty, see 90d43b0768 (teach diffcore-rename to
optionally ignore empty content - 2012-03-22) for more information.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
