<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/diff-options.adoc, branch main</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2026-03-24T19:31:34Z</updated>
<entry>
<title>Merge branch 'ty/doc-diff-u-wo-number'</title>
<updated>2026-03-24T19:31:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2026-03-24T19:31:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=c006399b738ed602a67e6077403376a79c94bbe4'/>
<id>urn:sha1:c006399b738ed602a67e6077403376a79c94bbe4</id>
<content type='text'>
"git diff -U&lt;num&gt;" was too lenient in its command line parsing and
took an empty string as a valid &lt;num&gt;.

* ty/doc-diff-u-wo-number:
  diff: document -U without &lt;n&gt; as using default context
</content>
</entry>
<entry>
<title>diff: document -U without &lt;n&gt; as using default context</title>
<updated>2026-03-10T13:17:59Z</updated>
<author>
<name>Tian Yuchen</name>
<email>cat@malon.dev</email>
</author>
<published>2026-03-10T09:50:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=4f6a803aba9e97650af304b5c266cfbc25b11fcc'/>
<id>urn:sha1:4f6a803aba9e97650af304b5c266cfbc25b11fcc</id>
<content type='text'>
The documentation for '-U&lt;n&gt;' implies that the numeric value '&lt;n&gt;' is
mandatory. However, the command line parser has historically accepted
'-U' without a number.

Strictly requiring a number for '-U' would break existing tests
(e.g., in 't4013') and likely disrupt user scripts relying on this
undocumented behavior.

Hence we retain this fallback behavior for backward compatibility, but
document it as such.

Signed-off-by: Tian Yuchen &lt;cat@malon.dev&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: diff-options.adoc: make *.noprefix split translatable</title>
<updated>2026-03-02T16:53:28Z</updated>
<author>
<name>Kristoffer Haugsbakk</name>
<email>code@khaugsbakk.name</email>
</author>
<published>2026-03-01T19:21:14Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ea3a62c40ef2d31a6ab87ae3b8be46690d549b58'/>
<id>urn:sha1:ea3a62c40ef2d31a6ab87ae3b8be46690d549b58</id>
<content type='text'>
We cannot split single words like what we did in the previous
commit. That is because the doc translations are processed in
bigger chunks.

Instead write the two paragraphs with the only variations being this
configuration variable.

Reported-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Kristoffer Haugsbakk &lt;code@khaugsbakk.name&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: diff-options.adoc: show format.noprefix for format-patch</title>
<updated>2026-02-23T23:55:19Z</updated>
<author>
<name>Kristoffer Haugsbakk</name>
<email>code@khaugsbakk.name</email>
</author>
<published>2026-02-23T23:30:51Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5eee5d81e42369e7e3b86dbc6f45e96c65c0bb1d'/>
<id>urn:sha1:5eee5d81e42369e7e3b86dbc6f45e96c65c0bb1d</id>
<content type='text'>
git-format-patch(1) uses `format.noprefix` and ignores `diff.noprefix`.

The configuration variable `format.prefix` was added as an “escape
hatch”, and “it’s unlikely that anybody really wants format.
noprefix=true in the first place.”[1] Based on that there doesn’t
seem to be a need to widely advertise this configuration variable.

But in any case: the documentation for this option should not claim
that it overrides a config that is always ignored.

† 1: 8d5213de (format-patch: add format.noprefix option, 2023-03-09)

Signed-off-by: Kristoffer Haugsbakk &lt;code@khaugsbakk.name&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>blame: make diff algorithm configurable</title>
<updated>2025-11-17T17:31:59Z</updated>
<author>
<name>Antonin Delpeuch</name>
<email>antonin@delpeuch.eu</email>
</author>
<published>2025-11-17T08:04:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ffffb987fcd3b3d6b88aceed87000ef4a5b6114e'/>
<id>urn:sha1:ffffb987fcd3b3d6b88aceed87000ef4a5b6114e</id>
<content type='text'>
The diff algorithm used in 'git-blame(1)' is set to 'myers',
without the possibility to change it aside from the `--minimal` option.

There has been long-standing interest in changing the default diff
algorithm to "histogram", and Git 3.0 was floated as a possible occasion
for taking some steps towards that:

https://lore.kernel.org/git/xmqqed873vgn.fsf@gitster.g/

As a preparation for this move, it is worth making sure that the diff
algorithm is configurable where useful.

Make it configurable in the `git-blame(1)` command by introducing the
`--diff-algorithm` option and make honor the `diff.algorithm` config
variable. Keep Myers diff as the default.

Signed-off-by: Antonin Delpeuch &lt;antonin@delpeuch.eu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ja/doc-lint-sections-and-synopsis'</title>
<updated>2025-08-25T21:22:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-08-25T21:22:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=0d8f4ccfe3b13bb5eb95f030dc5fe76efb255397'/>
<id>urn:sha1:0d8f4ccfe3b13bb5eb95f030dc5fe76efb255397</id>
<content type='text'>
Doc lint updates to encourage the newer and easier-to-use
`synopsis` format, with fixes to a handful of existing uses.

* ja/doc-lint-sections-and-synopsis:
  doc lint: check that synopsis manpages have synopsis inlines
  doc:git-for-each-ref: fix styling and typos
  doc: check for absence of the form --[no-]parameter
  doc: check for absence of multiple terms in each entry of desc list
  doc: check well-formedness of delimited sections
  doc: test linkgit macros for well-formedness
</content>
</entry>
<entry>
<title>Merge branch 'tc/diff-tree-max-depth'</title>
<updated>2025-08-25T21:22:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-08-25T21:22:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=109c3df14ccf372c2438a470bdfb566265399f0a'/>
<id>urn:sha1:109c3df14ccf372c2438a470bdfb566265399f0a</id>
<content type='text'>
"git diff-tree" learned "--max-depth" option.

* tc/diff-tree-max-depth:
  diff: teach tree-diff a max-depth parameter
  within_depth: fix return for empty path
  combine-diff: zero memory used for callback filepairs
</content>
</entry>
<entry>
<title>doc: check for absence of the form --[no-]parameter</title>
<updated>2025-08-11T21:16:04Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2025-08-11T20:53:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=03a353bb9759a1c775ba70f1e9ee865fc38291c2'/>
<id>urn:sha1:03a353bb9759a1c775ba70f1e9ee865fc38291c2</id>
<content type='text'>
For better searchability, this commit adds a check to ensure that parameters
expressed in the form of `--[no-]parameter` are not used in the
documentation.  In the place of such parameters, the documentation should
list two separate parameters: `--parameter` and `--no-parameter`.

Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: teach tree-diff a max-depth parameter</title>
<updated>2025-08-07T22:29:35Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2025-08-07T20:52:58Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=a1dfa5448d583bbfd1ec45642a4495ad499970c9'/>
<id>urn:sha1:a1dfa5448d583bbfd1ec45642a4495ad499970c9</id>
<content type='text'>
When you are doing a tree-diff, there are basically two options: do not
recurse into subtrees at all, or recurse indefinitely. While most
callers would want to always recurse and see full pathnames, some may
want the efficiency of looking only at a particular level of the tree.
This is currently easy to do for the top-level (just turn off
recursion), but you cannot say "show me what changed in subdir/, but do
not recurse".

This patch adds a max-depth parameter which is measured from the closest
pathspec match, so that you can do:

  git log --raw --max-depth=1 -- a/b/c

and see the raw output for a/b/c/, but not those of a/b/c/d/
(instead of the raw output you would see for a/b/c/d).

Co-authored-by: Toon Claes &lt;toon@iotcl.com&gt;
Signed-off-by: Toon Claes &lt;toon@iotcl.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: git-log: convert diff options to new doc format</title>
<updated>2025-07-07T20:45:00Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2025-07-07T18:53:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=0b4ccb2199efedce3f8de33a1da46bab59f5da35'/>
<id>urn:sha1:0b4ccb2199efedce3f8de33a1da46bab59f5da35</id>
<content type='text'>
- Use `backticks` for keywords and more complex option
descriptions. The new rendering engine will apply synopsis rules to
these spans.
- In description lists, put each option on its own line, to make them more
searchable and enable automatic translation of the options.

Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
