<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diff-lib.c, branch v1.5.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.5.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.5.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2007-04-22T00:21:10Z</updated>
<entry>
<title>Merge branch 'lt/gitlink'</title>
<updated>2007-04-22T00:21:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-04-22T00:21:10Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=afb5b6a24bd333d298d10acac731f1c127bbb82d'/>
<id>urn:sha1:afb5b6a24bd333d298d10acac731f1c127bbb82d</id>
<content type='text'>
* lt/gitlink:
  Tests for core subproject support
  Expose subprojects as special files to "git diff" machinery
  Fix some "git ls-files -o" fallout from gitlinks
  Teach "git-read-tree -u" to check out submodules as a directory
  Teach git list-objects logic to not follow gitlinks
  Fix gitlink index entry filesystem matching
  Teach "git-read-tree -u" to check out submodules as a directory
  Teach git list-objects logic not to follow gitlinks
  Don't show gitlink directories when we want "other" files
  Teach git-update-index about gitlinks
  Teach directory traversal about subprojects
  Fix thinko in subproject entry sorting
  Teach core object handling functions about gitlinks
  Teach "fsck" not to follow subproject links
  Add "S_IFDIRLNK" file mode infrastructure for git links
  Add 'resolve_gitlink_ref()' helper function
  Avoid overflowing name buffer in deep directory structures
  diff-lib: use ce_mode_from_stat() rather than messing with modes manually
</content>
</entry>
<entry>
<title>Do not default to --no-index when given two directories.</title>
<updated>2007-04-14T02:34:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-04-13T10:23:20Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1ad029b6a1e2fb0254667a2bea8d1ee180cc6ac7'/>
<id>urn:sha1:1ad029b6a1e2fb0254667a2bea8d1ee180cc6ac7</id>
<content type='text'>
git-diff -- a/ b/ always defaulted to --no-index, primarily
because the function is_in_index() was implemented quite
incorrectly.

Noticed by Patrick Maaß and Simon Schubert independently,
initial patch was provided by Patrick but I fixed it
differently.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff-lib: use ce_mode_from_stat() rather than messing with modes manually</title>
<updated>2007-04-10T05:30:04Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2007-04-10T04:13:29Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=844c11ae259bd33b971b9ca389b3f9619427e9a8'/>
<id>urn:sha1:844c11ae259bd33b971b9ca389b3f9619427e9a8</id>
<content type='text'>
The diff helpers used to do the magic mode canonicalization and all the
other special mode handling by hand ("trust executable bit" and "has
symlink support" handling).

That's bogus. Use "ce_mode_from_stat()" that does this all for us.

This is also going to be required when we add support for links to other
git repositories.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Teach --quiet to diff backends.</title>
<updated>2007-03-14T23:21:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-03-14T18:12:51Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=822cac015589889c1a9e6d49a2c054b7f1b838ba'/>
<id>urn:sha1:822cac015589889c1a9e6d49a2c054b7f1b838ba</id>
<content type='text'>
This teaches git-diff-files, git-diff-index and git-diff-tree
backends to exit early under --quiet option.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Allow git-diff exit with codes similar to diff(1)</title>
<updated>2007-03-14T23:21:19Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2007-03-14T00:17:04Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=41bbf9d58575095234c64df979ee884334469758'/>
<id>urn:sha1:41bbf9d58575095234c64df979ee884334469758</id>
<content type='text'>
This introduces a new command-line option: --exit-code. The diff
programs will return 1 for differences, return 0 for equality, and
something else for errors.

Signed-off-by: Alex Riesen &lt;raa.lkml@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/diff-ni'</title>
<updated>2007-03-11T07:26:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-03-11T07:26:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=cf6981d4932007555689052cbc255b911674b01c'/>
<id>urn:sha1:cf6981d4932007555689052cbc255b911674b01c</id>
<content type='text'>
* js/diff-ni:
  Get rid of the dependency to GNU diff in the tests
  diff --no-index: support /dev/null as filename
  diff-ni: fix the diff with standard input
  diff: support reading a file from stdin via "-"
</content>
</entry>
<entry>
<title>Merge branch 'js/symlink'</title>
<updated>2007-03-05T01:31:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-03-05T01:31:09Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e6f95113431f7e69263bc3d075c0a7715ce587e3'/>
<id>urn:sha1:e6f95113431f7e69263bc3d075c0a7715ce587e3</id>
<content type='text'>
* js/symlink:
  Tell multi-parent diff about core.symlinks.
  Handle core.symlinks=false case in merge-recursive.
  Add core.symlinks to mark filesystems that do not support symbolic links.
</content>
</entry>
<entry>
<title>diff --no-index: support /dev/null as filename</title>
<updated>2007-03-04T08:20:31Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-02-25T22:36:31Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0c725f1bd938fa2b626e910773e622a385daced2'/>
<id>urn:sha1:0c725f1bd938fa2b626e910773e622a385daced2</id>
<content type='text'>
This allows us to create "new file" and "delete file" patches.
It also cleans up the code.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff-ni: fix the diff with standard input</title>
<updated>2007-03-04T08:17:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-03-04T08:17:27Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=3afaa72d7d4e52d5fa1bc19abb68301f2b09aca6'/>
<id>urn:sha1:3afaa72d7d4e52d5fa1bc19abb68301f2b09aca6</id>
<content type='text'>
The earlier commit to read from stdin was full of problems, and
this corrects them.

 - The mode bits should have been set to satisify S_ISREG(); we
   forgot to the S_IFREG bits and hardcoded 0644;
 - We did not give escape hatch to name a path whose name is
   really "-".  Allow users to say "./-" for that;
 - Use of xread() was not prepared to see short read (e.g. reading
   from tty) nor handing read errors.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff: support reading a file from stdin via "-"</title>
<updated>2007-03-04T07:45:47Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-02-25T22:36:10Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=5332b2af104180b8135e0b3528ace7596cb9ba09'/>
<id>urn:sha1:5332b2af104180b8135e0b3528ace7596cb9ba09</id>
<content type='text'>
This allows you to say

	echo Hello World | git diff x -

to compare the contents of file "x" with the line "Hello World".
This automatically switches to --no-index mode.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
