<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/diff-options.txt, branch v2.18.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.18.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.18.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-06-19T16:01:12Z</updated>
<entry>
<title>doc: fix typos in documentation and release notes</title>
<updated>2018-06-19T16:01:12Z</updated>
<author>
<name>Karthikeyan Singaravelan</name>
<email>tir.karthi@gmail.com</email>
</author>
<published>2018-06-17T04:35:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1f2abe68d032c72d450c5afd1271953596e6258f'/>
<id>urn:sha1:1f2abe68d032c72d450c5afd1271953596e6258f</id>
<content type='text'>
Signed-off-by: Karthikeyan Singaravelan &lt;tir.karthi@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rd/diff-options-typofix'</title>
<updated>2018-06-18T17:18:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-06-18T17:18:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d676cc512a7aa17f6c7db53792c1e21c4ddfea42'/>
<id>urn:sha1:d676cc512a7aa17f6c7db53792c1e21c4ddfea42</id>
<content type='text'>
Typofix.

* rd/diff-options-typofix:
  diff-options.txt: fix minor typos, font inconsistencies, in docs
</content>
</entry>
<entry>
<title>diff-options.txt: fix minor typos, font inconsistencies, in docs</title>
<updated>2018-06-11T20:11:09Z</updated>
<author>
<name>Robert P. J. Day</name>
<email>rpjday@crashcourse.ca</email>
</author>
<published>2018-06-11T13:56:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7eedad15df615e1a2e34cb76920d5c60e9f8d8dd'/>
<id>urn:sha1:7eedad15df615e1a2e34cb76920d5c60e9f8d8dd</id>
<content type='text'>
Signed-off-by: Robert P. J. Day &lt;rpjday@crashcourse.ca&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'en/doc-typoes'</title>
<updated>2018-04-25T04:28:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-04-25T04:28:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cb6462fe7435657fbd905018e9b3c76f1d946832'/>
<id>urn:sha1:cb6462fe7435657fbd905018e9b3c76f1d946832</id>
<content type='text'>
Docfix.

* en/doc-typoes:
  Documentation: normalize spelling of 'normalised'
  Documentation: fix several one-character-off spelling errors
</content>
</entry>
<entry>
<title>Documentation: fix several one-character-off spelling errors</title>
<updated>2018-04-09T05:15:02Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2018-04-05T17:20:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c30d4f1b84458f61a3d02d396aae8409bf4a9be0'/>
<id>urn:sha1:c30d4f1b84458f61a3d02d396aae8409bf4a9be0</id>
<content type='text'>
Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Reviewed-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/diff-stat-with-summary'</title>
<updated>2018-03-14T19:01:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-03-14T19:01:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=868f7d23384931641aa4901aab27f3f23577e63b'/>
<id>urn:sha1:868f7d23384931641aa4901aab27f3f23577e63b</id>
<content type='text'>
"git diff" and friends learned "--compact-summary" that shows the
information usually given with the "--summary" option on the same
line as the diffstat output of the "--stat" option (which saves
vertical space and keeps info on a single path at the same place).

* nd/diff-stat-with-summary:
  diff: add --compact-summary
  diff.c: refactor pprint_rename() to use strbuf
</content>
</entry>
<entry>
<title>diff: add --compact-summary</title>
<updated>2018-02-27T23:22:47Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-02-24T14:09:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ddf88fa6166473be15822739e0a12aad4edfbbc5'/>
<id>urn:sha1:ddf88fa6166473be15822739e0a12aad4edfbbc5</id>
<content type='text'>
Certain information is currently shown with --summary, but when used
in combination with --stat it's a bit hard to read since info of the
same file is in two places (--stat and --summary).

On top of that, commits that add or remove files double the number of
display lines, which could be a lot if you add or remove a lot of
files.

--compact-summary embeds most of --summary back in --stat in the
little space between the file name part and the graph line, e.g. with
commit 0433d533f1:

   Documentation/merge-config.txt         |  4 +
   builtin/merge.c                        |  2 +
   ...-pull-verify-signatures.sh (new +x) | 81 ++++++++++++++
   t/t7612-merge-verify-signatures.sh     | 45 ++++++++
   4 files changed, 132 insertions(+)

It helps both condensing information and saving some text
space. What's new in diffstat is:

- A new 0644 file is shown as (new)
- A new 0755 file is shown as (new +x)
- A new symlink is shown as (new +l)
- A deleted file is shown as (gone)
- A mode change adding executable bit is shown as (mode +x)
- A mode change removing it is shown as (mode -x)

Note that --compact-summary does not contain all the information
--summary provides. Rewrite percentage is not shown but it could be
added later, like R50% or C20%.

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>Merge branch 'sb/diff-blobfind-pickaxe'</title>
<updated>2018-01-23T21:16:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-01-23T21:16:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c0d75f0e2e2cbf432358bfd00be593fd28e257a3'/>
<id>urn:sha1:c0d75f0e2e2cbf432358bfd00be593fd28e257a3</id>
<content type='text'>
"diff" family of commands learned "--find-object=&lt;object-id&gt;" option
to limit the findings to changes that involve the named object.

* sb/diff-blobfind-pickaxe:
  diff: use HAS_MULTI_BITS instead of counting bits manually
  diff: properly error out when combining multiple pickaxe options
  diffcore: add a pickaxe option to find a specific blob
  diff: introduce DIFF_PICKAXE_KINDS_MASK
  diff: migrate diff_flags.pickaxe_ignore_case to a pickaxe_opts bit
  diff.h: make pickaxe_opts an unsigned bit field
</content>
</entry>
<entry>
<title>Merge branch 'jk/doc-diff-options'</title>
<updated>2018-01-09T22:32:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-01-09T22:32:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6366dd9000a3f67e47a30d94375a88dabc18ec6f'/>
<id>urn:sha1:6366dd9000a3f67e47a30d94375a88dabc18ec6f</id>
<content type='text'>
Doc update.

* jk/doc-diff-options:
  docs/diff-options: clarify scope of diff-filter types
</content>
</entry>
<entry>
<title>diffcore: add a pickaxe option to find a specific blob</title>
<updated>2018-01-04T23:02:40Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2018-01-04T22:50:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=15af58c1adba431c216e2a45fa0d22944560ba02'/>
<id>urn:sha1:15af58c1adba431c216e2a45fa0d22944560ba02</id>
<content type='text'>
Sometimes users are given a hash of an object and they want to
identify it further (ex.: Use verify-pack to find the largest blobs,
but what are these? or [1])

One might be tempted to extend git-describe to also work with blobs,
such that `git describe &lt;blob-id&gt;` gives a description as
'&lt;commit-ish&gt;:&lt;path&gt;'.  This was implemented at [2]; as seen by the sheer
number of responses (&gt;110), it turns out this is tricky to get right.
The hard part to get right is picking the correct 'commit-ish' as that
could be the commit that (re-)introduced the blob or the blob that
removed the blob; the blob could exist in different branches.

Junio hinted at a different approach of solving this problem, which this
patch implements. Teach the diff machinery another flag for restricting
the information to what is shown. For example:

    $ ./git log --oneline --find-object=v2.0.0:Makefile
    b2feb64309 Revert the whole "ask curl-config" topic for now
    47fbfded53 i18n: only extract comments marked with "TRANSLATORS:"

we observe that the Makefile as shipped with 2.0 was appeared in
v1.9.2-471-g47fbfded53 and in v2.0.0-rc1-5-gb2feb6430b.  The
reason why these commits both occur prior to v2.0.0 are evil
merges that are not found using this new mechanism.

[1] https://stackoverflow.com/questions/223678/which-commit-has-this-blob
[2] https://public-inbox.org/git/20171028004419.10139-1-sbeller@google.com/

Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
