<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-diff-cache.txt, branch v0.99</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v0.99</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v0.99'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-06-20T03:13:18Z</updated>
<entry>
<title>[PATCH] Update diff documentation.</title>
<updated>2005-06-20T03:13:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-19T20:14:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=232b75ab3d60475b19270be022a966772c25c84b'/>
<id>urn:sha1:232b75ab3d60475b19270be022a966772c25c84b</id>
<content type='text'>
This updates diff documentation to discuss --find-copies-harder,
and adds descriptions for options that were not described
earlier.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] diff: Fix docs and add -O to diff-helper.</title>
<updated>2005-06-03T18:23:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-03T08:36:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ce24067549a8554b214e723d7aa4bc063c54409e'/>
<id>urn:sha1:ce24067549a8554b214e723d7aa4bc063c54409e</id>
<content type='text'>
This patch updates diff documentation and usage strings:

 - clarify the semantics of -R.  It is not "output in reverse";
   rather, it is "I will feed diff backwards".  Semantically
   they are different when -C is involved.

 - describe -O in usage strings of diff-* brothers.  It was
   implemented, documented but not described in usage text.

Also it adds -O to diff-helper.  Like -S (and unlike -M/-C/-B),
this option can work on sanitized diff-raw output produced by
the diff-* brothers.  While we are at it, the call it makes to
diffcore is cleaned up to use the diffcore_std() like everybody
else, and the declaration for the low level diffcore routines
are moved from diff.h (public) to diffcore.h (private between
diff.c and diffcore backends).

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add -O&lt;orderfile&gt; option to diff-* brothers.</title>
<updated>2005-05-31T01:10:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-30T07:09:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=af5323e0274fad058f13949b89a9191a7bef7e38'/>
<id>urn:sha1:af5323e0274fad058f13949b89a9191a7bef7e38</id>
<content type='text'>
A new diffcore filter diffcore-order is introduced.  This takes
a text file each of whose line is a shell glob pattern.  Patches
that match a glob pattern on an earlier line in the file are
output before patches that match a later line, and patches that
do not match any glob pattern are output last.

A typical orderfile for git project probably should look like
this:

    README
    Makefile
    Documentation
    *.h
    *.c

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add -B flag to diff-* brothers.</title>
<updated>2005-05-30T17:35:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-30T07:08:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f345b0a066572206aac4a4f9a57d746e213b6bff'/>
<id>urn:sha1:f345b0a066572206aac4a4f9a57d746e213b6bff</id>
<content type='text'>
A new diffcore transformation, diffcore-break.c, is introduced.

When the -B flag is given, a patch that represents a complete
rewrite is broken into a deletion followed by a creation.  This
makes it easier to review such a complete rewrite patch.

The -B flag takes the same syntax as the -M and -C flags to
specify the minimum amount of non-source material the resulting
file needs to have to be considered a complete rewrite, and
defaults to 99% if not specified.

As the new test t4008-diff-break-rewrite.sh demonstrates, if a
file is a complete rewrite, it is broken into a delete/create
pair, which can further be subjected to the usual rename
detection if -M or -C is used.  For example, if file0 gets
completely rewritten to make it as if it were rather based on
file1 which itself disappeared, the following happens:

    The original change looks like this:

	file0     --&gt; file0' (quite different from file0)
	file1     --&gt; /dev/null

    After diffcore-break runs, it would become this:

	file0     --&gt; /dev/null
	/dev/null --&gt; file0'
	file1     --&gt; /dev/null

    Then diffcore-rename matches them up:

	file1     --&gt; file0'

The internal score values are finer grained now.  Earlier
maximum of 10000 has been raised to 60000; there is no user
visible changes but there is no reason to waste available bits.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Pickaxe fixes.</title>
<updated>2005-05-29T18:42:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-28T09:53:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e25de75696dc99f327c8dd8e2cba937939e281ca'/>
<id>urn:sha1:e25de75696dc99f327c8dd8e2cba937939e281ca</id>
<content type='text'>
A bug in the command line argument parsing code was making
pickaxe not to work at all in diff-cache and diff-files commands.
Embarrassingly enough, the working pickaxe in diff-tree tells me
that it was not working in these two commands from day one.
This patch fixes it.

Also updates the documentation to describe the --pickaxe-all option.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Update git-diff-cache documentation.</title>
<updated>2005-05-24T02:17:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-24T01:20:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b1c006dd651fce55e25a7b06d00382cfdc1a3f91'/>
<id>urn:sha1:b1c006dd651fce55e25a7b06d00382cfdc1a3f91</id>
<content type='text'>
The recent diff updates gave diff-cache the same ability to
filter paths, which was not properly documented.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] The diff-raw format updates.</title>
<updated>2005-05-22T05:49:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-22T02:42:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=81e50eabf06dd68e8e62a9b697eaf60904c58b22'/>
<id>urn:sha1:81e50eabf06dd68e8e62a9b697eaf60904c58b22</id>
<content type='text'>
Update the diff-raw format as Linus and I discussed, except that
it does not use sequence of underscore '_' letters to express
nonexistence.  All '0' mode is used for that purpose instead.

The new diff-raw format can express rename/copy, and the earlier
restriction that -M and -C _must_ be used with the patch format
output is no longer necessary.  The patch makes -M and -C flags
independent of -p flag, so you need to say git-whatchanged -M -p
to get the diff/patch format.

Updated are both documentations and tests.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Introducing software archaeologist's tool "pickaxe".</title>
<updated>2005-05-21T16:58:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-21T09:40:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=52e9578985fb636ec1d3f6cf794fdadd5ec896fc'/>
<id>urn:sha1:52e9578985fb636ec1d3f6cf794fdadd5ec896fc</id>
<content type='text'>
This steals the "pickaxe" feature from JIT and make it available
to the bare Plumbing layer.  From the command line, the user
gives a string he is intersted in.

Using the diff-core infrastructure previously introduced, it
filters the differences to limit the output only to the diffs
between &lt;src&gt; and &lt;dst&gt; where the string appears only in one but
not in the other.  For example:

 $ ./git-rev-list HEAD | ./git-diff-tree -Sdiff-tree-helper --stdin -M

would show the diffs that touch the string "diff-tree-helper".

In real software-archaeologist application, you would typically
look for a few to several lines of code and see where that code
came from.

The "pickaxe" module runs after "rename/copy detection" module,
so it even crosses the file rename boundary, as the above
example demonstrates.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Diff overhaul, adding half of copy detection.</title>
<updated>2005-05-21T16:58:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-21T09:39:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=427dcb4bca49117664d9428fd4e86483f516d703'/>
<id>urn:sha1:427dcb4bca49117664d9428fd4e86483f516d703</id>
<content type='text'>
This introduces the diff-core, the layer between the diff-tree
family and the external diff interface engine.  The calls to the
interface diff-tree family uses (diff_change and diff_addremove)
have not changed and will not change.  The purpose of the
diff-core layer is to provide an infrastructure to transform the
set of differences sent from the applications, before sending
them to the external diff interface.

The recently introduced rename detection code has been rewritten
to use the diff-core facility.  When applications send in
separate creates and deletes, matching ones are transformed into
a single rename-and-edit diff, and sent out to the external diff
interface as such.

This patch also enhances the rename detection code further to be
able to detect copies.  Currently this happens only as long as
copy sources appear as part of the modified files, but there
already is enough provision for callers to report unmodified
files to diff-core, so that they can be also used as copy source
candidates.  Extending the callers this way will be done in a
separate patch.

Please see and marvel at how well this works by trying out the
newly added t/t4003-diff-rename-1.sh test script.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] diff overhaul</title>
<updated>2005-05-20T05:33:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-20T02:00:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=57fe64a40d95dd99d798c6d7c81c1a76d24a8e7c'/>
<id>urn:sha1:57fe64a40d95dd99d798c6d7c81c1a76d24a8e7c</id>
<content type='text'>
This cleans up the way calls are made into the diff core from diff-tree
family and diff-helper.  Earlier, these programs had "if
(generating_patch)" sprinkled all over the place, but those ugliness are
gone and handled uniformly from the diff core, even when not generating
patch format.

This also allowed diff-cache and diff-files to acquire -R
(reverse) option to generate diff in reverse.  Users of
diff-tree can swap two trees easily so I did not add -R there.

[ Linus' note: I'll add -R to "diff-tree" too, since a "commit
  diff" doesn't have another tree to switch around: the other
  tree is always the parent(s) of the commit ]

Also -M&lt;digits-as-mantissa&gt; suggestion made by Linus has been
implemented.

Documentation updates are also included.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
