<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diff.c, branch v1.7.11</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.7.11</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.7.11'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2012-06-15T22:00:53Z</updated>
<entry>
<title>Merge branch 'as/diff-shortstat-ignore-binary'</title>
<updated>2012-06-15T22:00:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-06-15T22:00:53Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0b6e913c8be236ba801b49d21490409f13af7cd9'/>
<id>urn:sha1:0b6e913c8be236ba801b49d21490409f13af7cd9</id>
<content type='text'>
# By Alexander Strasser
* as/diff-shortstat-ignore-binary:
  diff: Only count lines in show_shortstats
</content>
</entry>
<entry>
<title>diff: Only count lines in show_shortstats</title>
<updated>2012-06-15T22:00:04Z</updated>
<author>
<name>Alexander Strasser</name>
<email>eclipse7@gmx.net</email>
</author>
<published>2012-06-15T21:50:30Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=de9658b511377e9eaa2c58a8c3885a1a01b94be8'/>
<id>urn:sha1:de9658b511377e9eaa2c58a8c3885a1a01b94be8</id>
<content type='text'>
Do not mix byte and line counts. Binary files have byte counts;
skip them when accumulating line insertions/deletions.

The regression was introduced in e18872b.

Signed-off-by: Alexander Strasser &lt;eclipse7@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'zj/diff-empty-chmod'</title>
<updated>2012-05-07T20:29:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-05-07T20:29:08Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=fc1320bfe2419e5eb3f43761e27ffa4f42a81825'/>
<id>urn:sha1:fc1320bfe2419e5eb3f43761e27ffa4f42a81825</id>
<content type='text'>
"git diff --stat" used to fully count a binary file with modified
execution bits whose contents is unmodified, which was not right.

By Zbigniew Jędrzejewski-Szmek (4) and Johannes Sixt (1)
* zj/diff-empty-chmod:
  t4006: Windows do not have /dev/zero
  diff --stat: do not run diff on indentical files
  diff --stat: report mode-only changes for binary files like text files
  tests: check --[short]stat output after chmod
  test: modernize style of t4006

Conflicts:
	diff.c
</content>
</entry>
<entry>
<title>Merge branch 'zj/diff-stat-smaller-num-columns'</title>
<updated>2012-05-02T20:53:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-05-02T20:53:28Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=29c2a3dbadaa1c2d1128a4892241f82f5b34778c'/>
<id>urn:sha1:29c2a3dbadaa1c2d1128a4892241f82f5b34778c</id>
<content type='text'>
Spend only minimum number of columns necessary to show the number of lines
in the output from "diff --stat", instead of always allocating 4 columns
even when showing changes that are much smaller than 1000 lines.

By Zbigniew Jędrzejewski-Szmek
* zj/diff-stat-smaller-num-columns:
  diff --stat: use less columns for change counts
</content>
</entry>
<entry>
<title>Merge branch 'lp/diffstat-with-graph'</title>
<updated>2012-05-02T20:51:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-05-02T20:51:59Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=73ff8cf784b6ee447072fad6c06fd0eef0e9c9f6'/>
<id>urn:sha1:73ff8cf784b6ee447072fad6c06fd0eef0e9c9f6</id>
<content type='text'>
"log --graph" was not very friendly with "--stat" option and its output
had line breaks at wrong places.

By Lucian Poston (5) and Zbigniew Jędrzejewski-Szmek (2)
* lp/diffstat-with-graph:
  t4052: work around shells unable to set COLUMNS to 1
  Prevent graph_width of stat width from falling below min
  t4052: Test diff-stat output with minimum columns
  t4052: Adjust --graph --stat output for prefixes
  Adjust stat width calculations to take --graph output into account
  Add output_prefix_length to diff_options
  t4052: test --stat output with --graph
</content>
</entry>
<entry>
<title>diff --stat: do not run diff on indentical files</title>
<updated>2012-05-02T04:29:03Z</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2012-05-01T17:10:15Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=352ca4e105e6fb37cad97b80f2640d28b133ca9d'/>
<id>urn:sha1:352ca4e105e6fb37cad97b80f2640d28b133ca9d</id>
<content type='text'>
If two objects are known to be equal, there is no point running the diff.

Signed-off-by: Zbigniew Jędrzejewski-Szmek &lt;zbyszek@in.waw.pl&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff --stat: report mode-only changes for binary files like text files</title>
<updated>2012-05-02T04:26:46Z</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2012-05-01T17:10:14Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e18872b2f0fba4cb860c9350bb8b8d8680dfc83b'/>
<id>urn:sha1:e18872b2f0fba4cb860c9350bb8b8d8680dfc83b</id>
<content type='text'>
Mode-only changes to binary files without content change were reported as
if they were rewritten, but text files in the same situation were reported
as "unchanged". Let's treat binary files like text files here, and simply
say that they are unchanged.

Output of --shortstat is modified in the same way.

Reported-by: Martin Mareš &lt;mj@ucw.cz&gt;
Signed-off-by: Zbigniew Jędrzejewski-Szmek &lt;zbyszek@in.waw.pl&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff --stat: use less columns for change counts</title>
<updated>2012-04-30T21:17:26Z</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2012-04-30T20:38:58Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=dc801e71a72201f760618c6a706a31edccdc6fd2'/>
<id>urn:sha1:dc801e71a72201f760618c6a706a31edccdc6fd2</id>
<content type='text'>
Number of columns required for change counts is now computed based on
the maximum number of changed lines instead of being fixed. This means
that usually a few more columns will be available for the filenames
and the graph.

The graph width logic is also modified to include enough space for
"Bin XXX -&gt; YYY bytes".

If changes to binary files are mixed with changes to text files,
change counts are padded to take at least three columns. And the other
way around, if change counts require more than three columns, then
"Bin"s are padded to align with the change count. This way, the +-
part starts in the same column as "XXX -&gt; YYY" part for binary files.
This makes the graph easier to parse visually thanks to the empty
column. This mimics the layout of diff --stat before this change.

Tests and the tutorial are updated to reflect the new --stat output.
This means either the removal of extra padding and/or the addition of
up to three extra characters to truncated filenames. One test is added
to check the graph alignment when a binary file change and text file
change of more than 999 lines are committed together.

Signed-off-by: Zbigniew Jędrzejewski-Szmek &lt;zbyszek@in.waw.pl&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'lp/maint-diff-three-dash-with-graph'</title>
<updated>2012-04-23T19:57:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-04-23T19:57:20Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=31a199a76e086f8931237b352ddcb7ba2b617481'/>
<id>urn:sha1:31a199a76e086f8931237b352ddcb7ba2b617481</id>
<content type='text'>
"log -p --graph" used with "--stat" had a few formatting error.

By Lucian Poston
* lp/maint-diff-three-dash-with-graph:
  t4202: add test for "log --graph --stat -p" separator lines
  log --graph: fix break in graph lines
  log --graph --stat: three-dash separator should come after graph lines
</content>
</entry>
<entry>
<title>Prevent graph_width of stat width from falling below min</title>
<updated>2012-04-18T23:08:11Z</updated>
<author>
<name>Lucian Poston</name>
<email>lucian.poston@gmail.com</email>
</author>
<published>2012-04-18T21:12:18Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=678c5741118729dc9072182bd368e0a3402dd4f1'/>
<id>urn:sha1:678c5741118729dc9072182bd368e0a3402dd4f1</id>
<content type='text'>
Update tests in t4052 fixed by this change.

Signed-off-by: Lucian Poston &lt;lucian.poston@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
