<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diff.h, branch v2.6.7</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v2.6.7</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v2.6.7'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2016-03-17T18:26:18Z</updated>
<entry>
<title>Merge branch 'maint-2.5' into maint-2.6</title>
<updated>2016-03-17T18:26:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-17T18:26:18Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ce4d4e763c054788550625502553ced8810a7bce'/>
<id>urn:sha1:ce4d4e763c054788550625502553ced8810a7bce</id>
<content type='text'>
* maint-2.5:
  Git 2.5.5
  Git 2.4.11
  list-objects: pass full pathname to callbacks
  list-objects: drop name_path entirely
  list-objects: convert name_path to a strbuf
  show_object_with_name: simplify by using path_name()
  http-push: stop using name_path
  tree-diff: catch integer overflow in combine_diff_path allocation
  add helpers for detecting size_t overflow
</content>
</entry>
<entry>
<title>Merge branch 'maint-2.4' into maint-2.5</title>
<updated>2016-03-17T18:24:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-17T18:24:14Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c638f3e4d585008f630d7dd8bb902f44217455b3'/>
<id>urn:sha1:c638f3e4d585008f630d7dd8bb902f44217455b3</id>
<content type='text'>
* maint-2.4:
  Git 2.4.11
  list-objects: pass full pathname to callbacks
  list-objects: drop name_path entirely
  list-objects: convert name_path to a strbuf
  show_object_with_name: simplify by using path_name()
  http-push: stop using name_path
  tree-diff: catch integer overflow in combine_diff_path allocation
  add helpers for detecting size_t overflow
</content>
</entry>
<entry>
<title>tree-diff: catch integer overflow in combine_diff_path allocation</title>
<updated>2016-03-16T17:41:02Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-02-19T11:21:30Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=d770187872e8408a8e4c0533cf6e6913776882b0'/>
<id>urn:sha1:d770187872e8408a8e4c0533cf6e6913776882b0</id>
<content type='text'>
A combine_diff_path struct has two "flex" members allocated
alongside the struct: a string to hold the pathname, and an
array of parent pointers. We use an "int" to compute this,
meaning we may easily overflow it if the pathname is
extremely long.

We can fix this by using size_t, and checking for overflow
with the st_add helper.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>log: add "log.follow" configuration variable</title>
<updated>2015-07-09T17:24:23Z</updated>
<author>
<name>David Turner</name>
<email>dturner@twopensource.com</email>
</author>
<published>2015-07-08T01:29:34Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=076c98372e7d3c86d269c1526349a67b73904330'/>
<id>urn:sha1:076c98372e7d3c86d269c1526349a67b73904330</id>
<content type='text'>
People who work on projects with mostly linear history with frequent
whole file renames may want to always use "git log --follow" when
inspecting the life of the content that live in a single path.

Teach the command to behave as if "--follow" was given from the
command line when log.follow configuration variable is set *and*
there is one (and only one) path on the command line.

Signed-off-by: David Turner &lt;dturner@twopensource.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/color-diff-plain-is-context'</title>
<updated>2015-06-11T16:29:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-11T16:29:53Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=db65170ee5558b47355e7f9f111aecb5b152d4d9'/>
<id>urn:sha1:db65170ee5558b47355e7f9f111aecb5b152d4d9</id>
<content type='text'>
"color.diff.plain" was a misnomer; give it 'color.diff.context' as
a more logical synonym.

* jk/color-diff-plain-is-context:
  diff.h: rename DIFF_PLAIN color slot to DIFF_CONTEXT
  diff: accept color.diff.context as a synonym for "plain"
</content>
</entry>
<entry>
<title>Merge branch 'jc/diff-ws-error-highlight'</title>
<updated>2015-06-11T16:29:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-11T16:29:51Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=709cd912d4663af87903d3d278a3bab9d4d84153'/>
<id>urn:sha1:709cd912d4663af87903d3d278a3bab9d4d84153</id>
<content type='text'>
Allow whitespace breakages in deleted and context lines to be also
painted in the output.

* jc/diff-ws-error-highlight:
  diff.c: --ws-error-highlight=&lt;kind&gt; option
  diff.c: add emit_del_line() and emit_context_line()
  t4015: separate common setup and per-test expectation
  t4015: modernise style
</content>
</entry>
<entry>
<title>diff.h: rename DIFF_PLAIN color slot to DIFF_CONTEXT</title>
<updated>2015-05-27T20:54:42Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-05-27T20:48:46Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8dbf3eb6850d6d9495ace908625fe50888b111e6'/>
<id>urn:sha1:8dbf3eb6850d6d9495ace908625fe50888b111e6</id>
<content type='text'>
The latter is a much more descriptive name (and we support
"color.diff.context" now). This also updates the name of any
local variables which were used to store the color.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff.c: --ws-error-highlight=&lt;kind&gt; option</title>
<updated>2015-05-27T06:00:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-05-26T17:11:28Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=b8767f791c15f119554c1466af60e4f2433ae971'/>
<id>urn:sha1:b8767f791c15f119554c1466af60e4f2433ae971</id>
<content type='text'>
Traditionally, we only cared about whitespace breakages introduced
in new lines.  Some people want to paint whitespace breakages on old
lines, too.  When they see a whitespace breakage on a new line, they
can spot the same kind of whitespace breakage on the corresponding
old line and want to say "Ah, those breakages are there but they
were inherited from the original, so let's not touch them for now."

Introduce `--ws-error-highlight=&lt;kind&gt;` option, that lets them pass
a comma separated list of `old`, `new`, and `context` to specify
what lines to highlight whitespace errors on.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: convert struct combine_diff_path to object_id</title>
<updated>2015-03-14T05:43:13Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2015-03-13T23:39:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1ff57c13c54bc9d548178e012f77717f87f2655d'/>
<id>urn:sha1:1ff57c13c54bc9d548178e012f77717f87f2655d</id>
<content type='text'>
Also, convert a constant to GIT_SHA1_HEXSZ.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ks/tree-diff-nway'</title>
<updated>2014-06-03T19:06:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-06-03T19:06:40Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8eaf517835d0534767d6a54d12d072ce30276ad9'/>
<id>urn:sha1:8eaf517835d0534767d6a54d12d072ce30276ad9</id>
<content type='text'>
Instead of running N pair-wise diff-trees when inspecting a
N-parent merge, find the set of paths that were touched by walking
N+1 trees in parallel.  These set of paths can then be turned into
N pair-wise diff-tree results to be processed through rename
detections and such.  And N=2 case nicely degenerates to the usual
2-way diff-tree, which is very nice.

* ks/tree-diff-nway:
  mingw: activate alloca
  combine-diff: speed it up, by using multiparent diff tree-walker directly
  tree-diff: rework diff_tree() to generate diffs for multiparent cases as well
  Portable alloca for Git
  tree-diff: reuse base str(buf) memory on sub-tree recursion
  tree-diff: no need to call "full" diff_tree_sha1 from show_path()
  tree-diff: rework diff_tree interface to be sha1 based
  tree-diff: diff_tree() should now be static
  tree-diff: remove special-case diff-emitting code for empty-tree cases
  tree-diff: simplify tree_entry_pathcmp
  tree-diff: show_path prototype is not needed anymore
  tree-diff: rename compare_tree_entry -&gt; tree_entry_pathcmp
  tree-diff: move all action-taking code out of compare_tree_entry()
  tree-diff: don't assume compare_tree_entry() returns -1,0,1
  tree-diff: consolidate code for emitting diffs and recursion in one place
  tree-diff: show_tree() is not needed
  tree-diff: no need to pass match to skip_uninteresting()
  tree-diff: no need to manually verify that there is no mode change for a path
  combine-diff: move changed-paths scanning logic into its own function
  combine-diff: move show_log_first logic/action out of paths scanning
</content>
</entry>
</feed>
