<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/diff-options.txt, branch v2.32.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.32.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.32.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-04-30T04:50:27Z</updated>
<entry>
<title>Merge branch 'ab/pathname-encoding-doc'</title>
<updated>2021-04-30T04:50:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-04-30T04:50:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=93e0b28dbb4c1a2cbdce1da8e229af075c2fa092'/>
<id>urn:sha1:93e0b28dbb4c1a2cbdce1da8e229af075c2fa092</id>
<content type='text'>
Clarify that pathnames recorded in Git trees are most often (but
not necessarily) encoded in UTF-8.

* ab/pathname-encoding-doc:
  doc: clarify the filename encoding in git diff
</content>
</entry>
<entry>
<title>doc: clarify the filename encoding in git diff</title>
<updated>2021-04-20T19:57:26Z</updated>
<author>
<name>Andrey Bienkowski</name>
<email>hexagonrecursion@gmail.com</email>
</author>
<published>2021-04-20T11:24:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9364bf465d23ff26f5e2eb4ee52434e7a69894f1'/>
<id>urn:sha1:9364bf465d23ff26f5e2eb4ee52434e7a69894f1</id>
<content type='text'>
AFAICT parsing the output of `git diff --name-only master...feature`
is the intended way of programmatically getting the list of files
modified
by a feature branch. It is impossible to parse text unless you know what
encoding it is in. The output encoding of diff --name-only and

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc/diff-options: document new --diff-merges features</title>
<updated>2021-04-17T06:38:35Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2021-04-13T11:41:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=364bc11fe5711fe7fbb98abf376168a207e7a448'/>
<id>urn:sha1:364bc11fe5711fe7fbb98abf376168a207e7a448</id>
<content type='text'>
Document changes in -m and --diff-merges=m semantics, as well as new
--diff-merges=on option.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: --{rotate,skip}-to=&lt;path&gt;</title>
<updated>2021-02-16T17:30:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-02-11T19:57:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1eb4136ac2a24764257567b930535fcece01719f'/>
<id>urn:sha1:1eb4136ac2a24764257567b930535fcece01719f</id>
<content type='text'>
In the implementation of "git difftool", there is a case where the
user wants to start viewing the diffs at a specific path and
continue on to the rest, optionally wrapping around to the
beginning.  Since it is somewhat cumbersome to implement such a
feature as a post-processing step of "git diff" output, let's
support it internally with two new options.

 - "git diff --rotate-to=C", when the resulting patch would show
   paths A B C D E without the option, would "rotate" the paths to
   shows patch to C D E A B instead.  It is an error when there is
   no patch for C is shown.

 - "git diff --skip-to=C" would instead "skip" the paths before C,
   and shows patch to C D E.  Again, it is an error when there is no
   patch for C is shown.

 - "git log [-p]" also accepts these two options, but it is not an
   error if there is no change to the specified path.  Instead, the
   set of output paths are rotated or skipped to the specified path
   or the first path that sorts after the specified path.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'so/log-diff-merge'</title>
<updated>2021-02-06T00:40:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-02-06T00:40:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aac006aa99fd94ac1665d6daa31b9e289914bfe7'/>
<id>urn:sha1:aac006aa99fd94ac1665d6daa31b9e289914bfe7</id>
<content type='text'>
"git log" learned a new "--diff-merges=&lt;how&gt;" option.

* so/log-diff-merge: (32 commits)
  t4013: add tests for --diff-merges=first-parent
  doc/git-show: include --diff-merges description
  doc/rev-list-options: document --first-parent changes merges format
  doc/diff-generate-patch: mention new --diff-merges option
  doc/git-log: describe new --diff-merges options
  diff-merges: add '--diff-merges=1' as synonym for 'first-parent'
  diff-merges: add old mnemonic counterparts to --diff-merges
  diff-merges: let new options enable diff without -p
  diff-merges: do not imply -p for new options
  diff-merges: implement new values for --diff-merges
  diff-merges: make -m/-c/--cc explicitly mutually exclusive
  diff-merges: refactor opt settings into separate functions
  diff-merges: get rid of now empty diff_merges_init_revs()
  diff-merges: group diff-merge flags next to each other inside 'rev_info'
  diff-merges: split 'ignore_merges' field
  diff-merges: fix -m to properly override -c/--cc
  t4013: add tests for -m failing to override -c/--cc
  t4013: support test_expect_failure through ':failure' magic
  diff-merges: revise revs-&gt;diff flag handling
  diff-merges: handle imply -p on -c/--cc logic for log.c
  ...
</content>
</entry>
<entry>
<title>doc/git-show: include --diff-merges description</title>
<updated>2020-12-21T21:47:32Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-12-21T15:19:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1d24509b7b865115836982267a5e54b2f7d77c42'/>
<id>urn:sha1:1d24509b7b865115836982267a5e54b2f7d77c42</id>
<content type='text'>
Move description of --diff-merges option from git-log.txt to
diff-options.txt so that it is included in the git-show help.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'pb/blame-funcname-range-userdiff'</title>
<updated>2020-11-18T21:32:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-11-18T21:32:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3f6dc9c36693c2ba6dd5fb61fbad6b72cc08e3d1'/>
<id>urn:sha1:3f6dc9c36693c2ba6dd5fb61fbad6b72cc08e3d1</id>
<content type='text'>
"git blame -L :funcname -- path" did not work well for a path for
which a userdiff driver is defined.

* pb/blame-funcname-range-userdiff:
  blame: simplify 'setup_blame_bloom_data' interface
  blame: simplify 'setup_scoreboard' interface
  blame: enable funcname blaming with userdiff driver
  line-log: mention both modes in 'blame' and 'log' short help
  doc: add more pointers to gitattributes(5) for userdiff
  blame-options.txt: also mention 'funcname' in '-L' description
  doc: line-range: improve formatting
  doc: log, gitk: move '-L' description to 'line-range-options.txt'
</content>
</entry>
<entry>
<title>Merge branch 'jc/abbrev-doc'</title>
<updated>2020-11-11T21:18:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-11-11T21:18:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ee13bebbd50f69ac593f3e87a0958045f38edf6d'/>
<id>urn:sha1:ee13bebbd50f69ac593f3e87a0958045f38edf6d</id>
<content type='text'>
The documentation on the "--abbrev=&lt;n&gt;" option did not say the
output may be longer than "&lt;n&gt;" hexdigits, which has been
clarified.

* jc/abbrev-doc:
  doc: clarify that --abbrev=&lt;n&gt; is about the minimum length
</content>
</entry>
<entry>
<title>Merge branch 'so/format-patch-doc-on-default-diff-format'</title>
<updated>2020-11-11T21:18:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-11-11T21:18:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c5a802f0ce46c34232cd85ae51d6f5d1cd5a574b'/>
<id>urn:sha1:c5a802f0ce46c34232cd85ae51d6f5d1cd5a574b</id>
<content type='text'>
Docfix.

* so/format-patch-doc-on-default-diff-format:
  doc/diff-options: fix out of place mentions of '--patch/-p'
</content>
</entry>
<entry>
<title>doc: clarify that --abbrev=&lt;n&gt; is about the minimum length</title>
<updated>2020-11-04T22:04:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-11-04T22:01:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cda34e0d0cc3e0b53e6c496c56e07e34c339263f'/>
<id>urn:sha1:cda34e0d0cc3e0b53e6c496c56e07e34c339263f</id>
<content type='text'>
Early text written in 2006 explains the "--abbrev=&lt;n&gt;" option to
"show only a partial prefix", without saying that the length of the
partial prefix is not necessarily the number given to the option to
ensure that the output names the object uniquely.

Update documentation for the diff family of commands, "blame",
"branch --verbose", "ls-files" and "ls-tree" to stress that the
short prefix must uniquely refer to an object, and &lt;n&gt; is merely
the mininum number of hexdigits used in the prefix.

Helped-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
