<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4010-diff-pathspec.sh, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2012-01-16T22:17:18Z</updated>
<entry>
<title>diff-index: enable recursive pathspec matching in unpack_trees</title>
<updated>2012-01-16T22:17:18Z</updated>
<author>
<name>Nguyen Thai Ngoc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-01-15T10:03:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4838237cb73a13d38a7e4348b71be96b60eed21e'/>
<id>urn:sha1:4838237cb73a13d38a7e4348b71be96b60eed21e</id>
<content type='text'>
The pathspec structure has a few bits of data to drive various operation
modes after we unified the pathspec matching logic in various codepaths.
For example, max_depth field is there so that "git grep" can limit the
output for files found in limited depth of tree traversal. Also in order
to show just the surface level differences in "git diff-tree", recursive
field stops us from descending into deeper level of the tree structure
when it is set to false, and this also affects pathspec matching when
we have wildcards in the pathspec.

The diff-index has always wanted the recursive behaviour, and wanted to
match pathspecs without any depth limit. But we forgot to do so when we
updated tree_entry_interesting() logic to unify the pathspec matching
logic.

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>tree_entry_interesting(): optimize wildcard matching when base is matched</title>
<updated>2011-02-03T22:08:30Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2010-12-15T15:02:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1a2ddbbc2df4e81e005a7e82f9e23fb6a9f95e3'/>
<id>urn:sha1:f1a2ddbbc2df4e81e005a7e82f9e23fb6a9f95e3</id>
<content type='text'>
If base is already matched, skip that part when calling
fnmatch(). This happens quite often if users start a command from
worktree's subdirectory and prefix is usually prepended to all
pathspecs.

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>tree_entry_interesting(): support wildcard matching</title>
<updated>2011-02-03T22:08:30Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2010-12-15T15:02:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d38f28093ef795bef13d2fda6621b4952afb42db'/>
<id>urn:sha1:d38f28093ef795bef13d2fda6621b4952afb42db</id>
<content type='text'>
never_interesting optimization is disabled if there is any wildcard
pathspec, even if it only matches exactly on trees.

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>Merge branch 'bs/maint-1.6.0-tree-walk-prefix'</title>
<updated>2009-04-08T05:33:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-04-08T05:33:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=00f39fc9955c22b6a8a2702b88509647e65291ce'/>
<id>urn:sha1:00f39fc9955c22b6a8a2702b88509647e65291ce</id>
<content type='text'>
* bs/maint-1.6.0-tree-walk-prefix:
  match_tree_entry(): a pathspec only matches at directory boundaries
  tree_entry_interesting: a pathspec only matches at directory boundary
</content>
</entry>
<entry>
<title>tree_entry_interesting: a pathspec only matches at directory boundary</title>
<updated>2009-04-02T02:35:16Z</updated>
<author>
<name>Björn Steinbrink</name>
<email>B.Steinbrink@gmx.de</email>
</author>
<published>2009-03-31T15:05:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f0946cb826b9b6c01976860fdd9dfd498ce0ec5e'/>
<id>urn:sha1:f0946cb826b9b6c01976860fdd9dfd498ce0ec5e</id>
<content type='text'>
Previously the code did a simple prefix match, which means that a
path in a directory "frotz/" would have matched with pathspec "f".

Signed-off-by: Björn Steinbrink &lt;B.Steinbrink@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: use $TEST_DIRECTORY to refer to the t/ directory</title>
<updated>2008-08-17T07:41:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-08-08T09:26:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bfdbee98109c5ad2dbbc392e7eed1ae688acc039'/>
<id>urn:sha1:bfdbee98109c5ad2dbbc392e7eed1ae688acc039</id>
<content type='text'>
Many test scripts assumed that they will start in a 'trash' subdirectory
that is a single level down from the t/ directory, and referred to their
test vector files by asking for files like "../t9999/expect".  This will
break if we move the 'trash' subdirectory elsewhere.

To solve this, we earlier introduced "$TEST_DIRECTORY" so that they can
refer to t/ directory reliably.  This finally makes all the tests use
it to refer to the outside environment.

With this patch, and a one-liner not included here (because it would
contradict with what Dscho really wants to do):

| diff --git a/t/test-lib.sh b/t/test-lib.sh
| index 70ea7e0..60e69e4 100644
| --- a/t/test-lib.sh
| +++ b/t/test-lib.sh
| @@ -485,7 +485,7 @@ fi
|  . ../GIT-BUILD-OPTIONS
|
|  # Test repository
| -test="trash directory"
| +test="trash directory/another level/yet another"
|  rm -fr "$test" || {
|         trap - exit
|         echo &gt;&amp;5 "FATAL: Cannot prepare test area"

all the tests still pass, but we would want extra sets of eyeballs on this
type of change to really make sure.

[jc: with help from Stephan Beyer on http-push tests I do not run myself;
 credits for locating silly quoting errors go to Olivier Marin.]

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Rewrite "git-frotz" to "git frotz"</title>
<updated>2007-07-03T05:52:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-07-03T05:52:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5be60078c935ed08ee8eb5a32680bdfb6bb5bdf3'/>
<id>urn:sha1:5be60078c935ed08ee8eb5a32680bdfb6bb5bdf3</id>
<content type='text'>
This uses the remove-dashes target to replace "git-frotz" to "git frotz".

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Libify diff-index.</title>
<updated>2006-04-22T09:43:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-04-22T09:43:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e09ad6e1e3308fde346b4b6287d9441363806832'/>
<id>urn:sha1:e09ad6e1e3308fde346b4b6287d9441363806832</id>
<content type='text'>
The second installment to libify diff brothers.  The pathname
arguments are checked more strictly than before because we now
use the revision.c::setup_revisions() infrastructure.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Big tool rename.</title>
<updated>2005-09-08T00:45:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-09-08T00:26:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=215a7ad1ef790467a4cd3f0dcffbd6e5f04c38f7'/>
<id>urn:sha1:215a7ad1ef790467a4cd3f0dcffbd6e5f04c38f7</id>
<content type='text'>
As promised, this is the "big tool rename" patch.  The primary differences
since 0.99.6 are:

  (1) git-*-script are no more.  The commands installed do not
      have any such suffix so users do not have to remember if
      something is implemented as a shell script or not.

  (2) Many command names with 'cache' in them are renamed with
      'index' if that is what they mean.

There are backward compatibility symblic links so that you and
Porcelains can keep using the old names, but the backward
compatibility support  is expected to be removed in the near
future.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Adjust diff-raw tests to the status letter change.</title>
<updated>2005-07-26T07:22:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-07-26T07:22:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2bbcddee877c01ea1008efe2137d7ef599189ef5'/>
<id>urn:sha1:2bbcddee877c01ea1008efe2137d7ef599189ef5</id>
<content type='text'>
We use 'A' for added files instead of 'N' to make the it
visually easier to distinguish from 'M' now.

While we are at it, make the test scripts executable.  Yes, I
know it does not matter because t/Makefile runs them explicitly
with "sh tXXXX-blah.sh", but being consistent is always better.

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