<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/diff.c, branch v2.6.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.6.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.6.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-10-01T20:56:14Z</updated>
<entry>
<title>lockfile.h: extract new header file for the functions in lockfile.c</title>
<updated>2014-10-01T20:56:14Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2014-10-01T10:28:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=697cc8efd944a32ca472337cd6640004c474b788'/>
<id>urn:sha1:697cc8efd944a32ca472337cd6640004c474b788</id>
<content type='text'>
Move the interface declaration for the functions in lockfile.c from
cache.h to a new file, lockfile.h. Add #includes where necessary (and
remove some redundant includes of cache.h by files that already
include builtin.h).

Move the documentation of the lock_file state diagram from lockfile.c
to the new header file.

Signed-off-by: Michael Haggerty &lt;mhagger@alum.mit.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tg/diff-no-index-refactor'</title>
<updated>2013-12-27T22:58:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-12-27T22:58:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=73b063130befa7475316a142343de87da61f31e3'/>
<id>urn:sha1:73b063130befa7475316a142343de87da61f31e3</id>
<content type='text'>
"git diff ../else/where/A ../else/where/B" when ../else/where is
clearly outside the repository, and "git diff --no-index A B", do
not have to look at the index at all, but we used to read the index
unconditionally.

* tg/diff-no-index-refactor:
  diff: avoid some nesting
  diff: add test for --no-index executed outside repo
  diff: don't read index when --no-index is given
  diff: move no-index detection to builtin/diff.c
</content>
</entry>
<entry>
<title>diff: avoid some nesting</title>
<updated>2013-12-16T21:13:05Z</updated>
<author>
<name>Thomas Gummerer</name>
<email>t.gummerer@gmail.com</email>
</author>
<published>2013-12-16T20:19:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aad90e85f8e6368533aa30c072b8e2bd7adafa53'/>
<id>urn:sha1:aad90e85f8e6368533aa30c072b8e2bd7adafa53</id>
<content type='text'>
Avoid some nesting in builtin/diff.c, to make the code easier to read.
There are no functional changes.

Helped-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: don't read index when --no-index is given</title>
<updated>2013-12-12T20:23:02Z</updated>
<author>
<name>Thomas Gummerer</name>
<email>t.gummerer@gmail.com</email>
</author>
<published>2013-12-11T09:58:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6df5762db354ca55a0cf77451d06b332b7de0b82'/>
<id>urn:sha1:6df5762db354ca55a0cf77451d06b332b7de0b82</id>
<content type='text'>
git diff --no-index ... currently reads the index, during setup, when
calling gitmodules_config().  This results in worse performance when the
index is not actually needed.  This patch avoids calling
gitmodules_config() when the --no-index option is given.  The times for
executing "git diff --no-index" in the WebKit repository are improved as
follows:

Test                      HEAD~3            HEAD
------------------------------------------------------------------
4001.1: diff --no-index   0.24(0.15+0.09)   0.01(0.00+0.00) -95.8%

An additional improvement of this patch is that "git diff --no-index" no
longer breaks when the index file is corrupt, which makes it possible to
use it for investigating the broken repository.

To improve the possible usage as investigation tool for broken
repositories, setup_git_directory_gently() is also not called when the
--no-index option is given.

Also add a test to guard against future breakages, and a performance
test to show the improvements.

Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: move no-index detection to builtin/diff.c</title>
<updated>2013-12-12T20:23:02Z</updated>
<author>
<name>Thomas Gummerer</name>
<email>t.gummerer@gmail.com</email>
</author>
<published>2013-12-11T09:58:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=470faf96544c1844ad775c695dfa370fe0ef3756'/>
<id>urn:sha1:470faf96544c1844ad775c695dfa370fe0ef3756</id>
<content type='text'>
Currently the --no-index option is parsed in diff_no_index().  Move the
detection if a no-index diff should be executed to builtin/diff.c, where
we can use it for executing diff_no_index() conditionally.  This will
also allow us to execute other operations conditionally, which will be
done in the next patch.

There are no functional changes.

Helped-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/magic-pathspec'</title>
<updated>2013-12-06T19:09:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-12-06T19:08:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e2bcd4f77968e075c2987da020ba7a843007a54f'/>
<id>urn:sha1:e2bcd4f77968e075c2987da020ba7a843007a54f</id>
<content type='text'>
"git diff -- ':(icase)makefile'" were rejected unnecessarily.
This needs to be merged to 'maint' later.

* nd/magic-pathspec:
  diff: restrict pathspec limitations to diff b/f case only
</content>
</entry>
<entry>
<title>diff: restrict pathspec limitations to diff b/f case only</title>
<updated>2013-11-20T23:04:51Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2013-11-20T01:26:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=887c6c18ba84da8d722b1528fe8cdde65d9f9860'/>
<id>urn:sha1:887c6c18ba84da8d722b1528fe8cdde65d9f9860</id>
<content type='text'>
builtin_diff_b_f() needs a path, not pathspec. Other modes in diff
can deal with pathspec just fine. But because of the current
GUARD_PATHSPEC() location, other modes also reject :(glob) and
:(icase).

Move GUARD_PATHSPEC(), and the "path" assignment statement, which is
the reason of this GUARD_PATHSPEC(), inside builtin_diff_b_f().

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: trivial style fix</title>
<updated>2013-10-31T20:48:09Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2013-10-31T09:25:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4e7e4b6b1bd3412a30ac577d06907ab47ede9483'/>
<id>urn:sha1:4e7e4b6b1bd3412a30ac577d06907ab47ede9483</id>
<content type='text'>
Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pathspec: support :(literal) syntax for noglob pathspec</title>
<updated>2013-07-15T17:56:09Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2013-07-14T08:36:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5c6933d201fab183a9779dca0fe43bf2f1eca098'/>
<id>urn:sha1:5c6933d201fab183a9779dca0fe43bf2f1eca098</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>convert read_cache_preload() to take struct pathspec</title>
<updated>2013-07-15T17:56:08Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2013-07-14T08:35:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5ab2a2dabd6e13cd6830ff4f12f232dc79278e29'/>
<id>urn:sha1:5ab2a2dabd6e13cd6830ff4f12f232dc79278e29</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
