<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/t, branch v1.8.0.2</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.8.0.2</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.8.0.2'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2012-12-07T22:10:17Z</updated>
<entry>
<title>Merge branch 'lt/diff-stat-show-0-lines' into maint</title>
<updated>2012-12-07T22:10:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-12-07T22:10:17Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6a402843c2bc0a72fb70c8795aee523d7f1582d3'/>
<id>urn:sha1:6a402843c2bc0a72fb70c8795aee523d7f1582d3</id>
<content type='text'>
"git diff --stat" miscounted the total number of changed lines when
binary files were involved and hidden beyond --stat-count.  It also
miscounted the total number of changed files when there were
unmerged paths.

* lt/diff-stat-show-0-lines:
  t4049: refocus tests
  diff --shortstat: do not count "unmerged" entries
  diff --stat: do not count "unmerged" entries
  diff --stat: move the "total count" logic to the last loop
  diff --stat: use "file" temporary variable to refer to data-&gt;files[i]
  diff --stat: status of unmodified pair in diff-q is not zero
  test: add failing tests for "diff --stat" to t4049
  Fix "git diff --stat" for interesting - but empty - file changes
</content>
</entry>
<entry>
<title>t4049: refocus tests</title>
<updated>2012-11-29T17:46:30Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-29T17:46:30Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=de9095955c581a664d9ce568a1ae58a98484090e'/>
<id>urn:sha1:de9095955c581a664d9ce568a1ae58a98484090e</id>
<content type='text'>
The primary thing Linus's patch wanted to change was to make sure
that 0-line change appears for a mode-only change.  Update the
first test to chmod a file that we can see in the output (limited
by --stat-count) to demonstrate it.  Also make sure to use test_chmod
and compare the index and the tree, so that we can run this test
even on a filesystem without permission bits.

Later two tests are about fixes to separate issues that were
introduced and/or uncovered by Linus's patch as a side effect, but
the issues are not related to mode-only changes.  Remove chmod from
the tests.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'pw/maint-p4-rcs-expansion-newline' into maint</title>
<updated>2012-11-28T20:04:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-28T20:04:32Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=2a7f6ffb9168c2e0d1f4ca9c1b63357e431093e9'/>
<id>urn:sha1:2a7f6ffb9168c2e0d1f4ca9c1b63357e431093e9</id>
<content type='text'>
"git p4" used to try expanding malformed "$keyword$" that spans
across multiple lines.

* pw/maint-p4-rcs-expansion-newline:
  git p4: RCS expansion should not span newlines
</content>
</entry>
<entry>
<title>Merge branch 'jh/update-ref-d-through-symref' into maint</title>
<updated>2012-11-27T21:28:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-27T21:28:45Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=ed20513c8de70e8bd7f18d2fb5beb1a81f49cdf8'/>
<id>urn:sha1:ed20513c8de70e8bd7f18d2fb5beb1a81f49cdf8</id>
<content type='text'>
* jh/update-ref-d-through-symref:
  Fix failure to delete a packed ref through a symref
  t1400-update-ref: Add test verifying bug with symrefs in delete_ref()
</content>
</entry>
<entry>
<title>diff --stat: do not count "unmerged" entries</title>
<updated>2012-11-27T21:21:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-27T20:05:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=82dfc2c44ecda8a7afe417086c704b141a11cd58'/>
<id>urn:sha1:82dfc2c44ecda8a7afe417086c704b141a11cd58</id>
<content type='text'>
Even though we show a separate *UNMERGED* entry in the patch and
diffstat output (or in the --raw format, for that matter) in
addition to and separately from the diff against the specified stage
(defaulting to #2) for unmerged paths, they should not be counted in
the total number of files affected---that would lead to counting the
same path twice.

The separation done by the previous step makes this fix simple and
straightforward.  Among the filepairs in diff_queue, paths that
weren't modified, and the extra "unmerged" entries do not count as
total number of files.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff --stat: move the "total count" logic to the last loop</title>
<updated>2012-11-27T21:21:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-27T19:47:46Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=a20d3c0de1f107ddd719a4a9cec3addd56e8444f'/>
<id>urn:sha1:a20d3c0de1f107ddd719a4a9cec3addd56e8444f</id>
<content type='text'>
The diffstat generation logic, with --stat-count limit, is
implemented as three loops.

 - The first counts the width necessary to show stats up to
   specified number of entries, and notes up to how many entries in
   the data we need to iterate to show the graph;

 - The second iterates that many times to draw the graph, adjusts
   the number of "total modified files", and counts the total
   added/deleted lines for the part that was shown in the graph;

 - The third iterates over the remainder and only does the part to
   count "total added/deleted lines" and to adjust "total modified
   files" without drawing anything.

Move the logic to count added/deleted lines and modified files from
the second loop to the third loop.

This incidentally fixes a bug.  The third loop was not filtering
binary changes (counted in bytes) from the total added/deleted as it
should.  The second loop implemented this correctly, so if a binary
change appeared earlier than the --stat-count cutoff, the code
counted number of added/deleted lines correctly, but if it appeared
beyond the cutoff, the number of lines would have mixed with the
byte count in the buggy third loop.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>test: add failing tests for "diff --stat" to t4049</title>
<updated>2012-11-27T21:21:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-27T20:55:00Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=9667ccbc8c513458cba0606644150eccb8a0c86b'/>
<id>urn:sha1:9667ccbc8c513458cba0606644150eccb8a0c86b</id>
<content type='text'>
There are a few problems in diff.c around --stat area, partially
caused by the recent 74faaa1 (Fix "git diff --stat" for interesting
- but empty - file changes, 2012-10-17), and largely caused by the
earlier change that introduced when --stat-count was added.

Add a few test pieces to t4049 to expose the issues.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cn/config-missing-path' into maint</title>
<updated>2012-11-26T02:35:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-26T02:35:46Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=ccf1bb3ab65f968b412b17cfdd9613b1d7bc61b4'/>
<id>urn:sha1:ccf1bb3ab65f968b412b17cfdd9613b1d7bc61b4</id>
<content type='text'>
* cn/config-missing-path:
  config: don't segfault when given --path with a missing value
</content>
</entry>
<entry>
<title>Merge branch 'jk/maint-gitweb-xss' into maint</title>
<updated>2012-11-26T02:35:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-26T02:35:41Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=326922fd20edd1ad4651052f7e22abed89c5dc4e'/>
<id>urn:sha1:326922fd20edd1ad4651052f7e22abed89c5dc4e</id>
<content type='text'>
Fixes an XSS vulnerability in gitweb.

* jk/maint-gitweb-xss:
  gitweb: escape html in rss title
</content>
</entry>
<entry>
<title>Merge branch 'jk/maint-diff-grep-textconv' into maint</title>
<updated>2012-11-20T18:03:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-20T18:03:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=35cae74c4d38b79ca80f6e62761f64fa67e8e609'/>
<id>urn:sha1:35cae74c4d38b79ca80f6e62761f64fa67e8e609</id>
<content type='text'>
"git diff -G&lt;pattern&gt;" did not honor textconv filter when looking
for changes.

* jk/maint-diff-grep-textconv:
  diff_grep: use textconv buffers for add/deleted files
</content>
</entry>
</feed>
