<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/attr.c, branch v2.3.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-09-18T16:13:42Z</updated>
<entry>
<title>use REALLOC_ARRAY for changing the allocation size of arrays</title>
<updated>2014-09-18T16:13:42Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-09-16T18:56:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2756ca4347cbda05b16954cd7f445c216b935e76'/>
<id>urn:sha1:2756ca4347cbda05b16954cd7f445c216b935e76</id>
<content type='text'>
Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>attr.c: use ALLOC_GROW() in handle_attr_line()</title>
<updated>2014-03-03T22:54:37Z</updated>
<author>
<name>Dmitry S. Dolzhenko</name>
<email>dmitrys.dolzhenko@yandex.ru</email>
</author>
<published>2014-03-03T22:31:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3a7fa03db97eddec274af2ef22d96fc6f486f7c0'/>
<id>urn:sha1:3a7fa03db97eddec274af2ef22d96fc6f486f7c0</id>
<content type='text'>
Signed-off-by: Dmitry S. Dolzhenko &lt;dmitrys.dolzhenko@yandex.ru&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>replace {pre,suf}fixcmp() with {starts,ends}_with()</title>
<updated>2013-12-05T22:13:21Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2013-11-30T20:55:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=59556548230e617b837343c2c07e357e688e2ca4'/>
<id>urn:sha1:59556548230e617b837343c2c07e357e688e2ca4</id>
<content type='text'>
Leaving only the function definitions and declarations so that any
new topic in flight can still make use of the old functions, replace
existing uses of the prefixcmp() and suffixcmp() with new API
functions.

The change can be recreated by mechanically applying this:

    $ git grep -l -e prefixcmp -e suffixcmp -- \*.c |
      grep -v strbuf\\.c |
      xargs perl -pi -e '
        s|!prefixcmp\(|starts_with\(|g;
        s|prefixcmp\(|!starts_with\(|g;
        s|!suffixcmp\(|ends_with\(|g;
        s|suffixcmp\(|!ends_with\(|g;
      '

on the result of preparatory changes in this series.

Signed-off-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'lf/read-blob-data-from-index'</title>
<updated>2013-04-22T01:39:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-04-22T01:39:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4b35b007a6bd8b76bd37589fa397c12265935029'/>
<id>urn:sha1:4b35b007a6bd8b76bd37589fa397c12265935029</id>
<content type='text'>
Reduce duplicated code between convert.c and attr.c.

* lf/read-blob-data-from-index:
  convert.c: remove duplicate code
  read_blob_data_from_index(): optionally return the size of blob data
  attr.c: extract read_index_data() as read_blob_data_from_index()
</content>
</entry>
<entry>
<title>read_blob_data_from_index(): optionally return the size of blob data</title>
<updated>2013-04-17T16:51:47Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>git@cryptocrack.de</email>
</author>
<published>2013-04-13T13:28:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ff36682505dfb580172306fe1b265b860f89bcea'/>
<id>urn:sha1:ff36682505dfb580172306fe1b265b860f89bcea</id>
<content type='text'>
This allows for optionally getting the size of the returned data and
will be used in a follow-up patch.

Signed-off-by: Lukas Fleischer &lt;git@cryptocrack.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>attr.c: extract read_index_data() as read_blob_data_from_index()</title>
<updated>2013-04-17T16:49:11Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>git@cryptocrack.de</email>
</author>
<published>2013-04-13T13:28:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=29fb37b272debaf4f5f6eb7cf476de9274492930'/>
<id>urn:sha1:29fb37b272debaf4f5f6eb7cf476de9274492930</id>
<content type='text'>
Extract the read_index_data() function from attr.c and move it to
read-cache.c; rename it to read_blob_data_from_index() and update
the function signature of it to align better with index/cache API
functions.

This allows for reusing the function in convert.c later.

Signed-off-by: Lukas Fleischer &lt;git@cryptocrack.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/directory-attrs-regression-fix' into maint-1.8.1</title>
<updated>2013-04-07T15:45:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-04-07T15:45:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4bbb830a35c5134b612a990f04ee16678ec0c674'/>
<id>urn:sha1:4bbb830a35c5134b612a990f04ee16678ec0c674</id>
<content type='text'>
A pattern "dir" (without trailing slash) in the attributes file
stopped matching a directory "dir" by mistake with an earlier change
that wanted to allow pattern "dir/" to also match.

* jc/directory-attrs-regression-fix:
  t: check that a pattern without trailing slash matches a directory
  dir.c::match_pathname(): pay attention to the length of string parameters
  dir.c::match_pathname(): adjust patternlen when shifting pattern
  dir.c::match_basename(): pay attention to the length of string parameters
  attr.c::path_matches(): special case paths that end with a slash
  attr.c::path_matches(): the basename is part of the pathname
</content>
</entry>
<entry>
<title>Merge branch 'jc/directory-attrs-regression-fix'</title>
<updated>2013-04-03T16:34:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-04-03T16:34:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f30366b27a91dbc18328bccf3067cdfad4f0cfbc'/>
<id>urn:sha1:f30366b27a91dbc18328bccf3067cdfad4f0cfbc</id>
<content type='text'>
Fix 1.8.1.x regression that stopped matching "dir" (without
trailing slash) to a directory "dir".

* jc/directory-attrs-regression-fix:
  t: check that a pattern without trailing slash matches a directory
  dir.c::match_pathname(): pay attention to the length of string parameters
  dir.c::match_pathname(): adjust patternlen when shifting pattern
  dir.c::match_basename(): pay attention to the length of string parameters
  attr.c::path_matches(): special case paths that end with a slash
  attr.c::path_matches(): the basename is part of the pathname
</content>
</entry>
<entry>
<title>attr.c::path_matches(): special case paths that end with a slash</title>
<updated>2013-03-29T04:47:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-03-28T21:49:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dc09e9ec43c09cdf803cc4f39f1fcb8ebcf80eb1'/>
<id>urn:sha1:dc09e9ec43c09cdf803cc4f39f1fcb8ebcf80eb1</id>
<content type='text'>
The function is given a string that ends with a slash to signal that
the path is a directory to make sure that a pattern that ends with a
slash (i.e. MUSTBEDIR) can tell directories and non-directories
apart.  However, the pattern itself (pat-&gt;pattern and
pat-&gt;patternlen) that came from such a MUSTBEDIR pattern is
represented as a string that ends with a slash, but patternlen does
not count that trailing slash. A MUSTBEDIR pattern "element/" is
represented as a counted string &lt;"element/", 7&gt; and this must match
match pathname "element/".

Because match_basename() and match_pathname() want to see pathname
"element" to match against the pattern &lt;"element/", 7&gt;, reduce the
length of the path to exclude the trailing slash when calling
these functions.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
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>attr.c::path_matches(): the basename is part of the pathname</title>
<updated>2013-03-26T18:09:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-03-26T17:28:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bd2f371d34b495ebbc4689604cfc34a825c47d2b'/>
<id>urn:sha1:bd2f371d34b495ebbc4689604cfc34a825c47d2b</id>
<content type='text'>
The function takes two strings (pathname and basename) as if they
are independent strings, but in reality, the latter is always
pointing into a substring in the former.

Clarify this relationship by expressing the latter as an offset into
the former.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
