<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/dir.c, branch v2.1.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.1.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.1.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-07-14T22:24:34Z</updated>
<entry>
<title>prep_exclude: remove the artificial PATH_MAX limit</title>
<updated>2014-07-14T22:24:34Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2014-07-14T09:50:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aceb9429b37a4a36e91f9eeb60e7ba488f73604b'/>
<id>urn:sha1:aceb9429b37a4a36e91f9eeb60e7ba488f73604b</id>
<content type='text'>
This fixes a segfault in git-status with long paths on Windows,
where PATH_MAX is only 260.

This also fixes the problem of silently ignoring .gitignore if the
full path exceeds PATH_MAX. Now add_excludes_from_file() will report
if it gets ENAMETOOLONG.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Karsten Blees &lt;blees@dcon.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>dir.c: coding style fix</title>
<updated>2014-07-14T22:24:34Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2014-07-14T09:47:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d961baa84689afdd0fe6b81f68b06481d83ce249'/>
<id>urn:sha1:d961baa84689afdd0fe6b81f68b06481d83ce249</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Karsten Blees &lt;blees@dcon.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cleanup duplicate name_compare() functions</title>
<updated>2014-06-20T17:12:14Z</updated>
<author>
<name>Jeremiah Mahler</name>
<email>jmmahler@gmail.com</email>
</author>
<published>2014-06-20T02:06:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ccdd4a0f3c7c550526a980e93156f25a956497bc'/>
<id>urn:sha1:ccdd4a0f3c7c550526a980e93156f25a956497bc</id>
<content type='text'>
We often represent our strings as a counted string, i.e. a pair of
the pointer to the beginning of the string and its length, and the
string may not be NUL terminated to that length.

To compare a pair of such counted strings, unpack-trees.c and
read-cache.c implement their own name_compare() functions
identically.  In addition, the cache_name_compare() function in
read-cache.c is nearly identical.  The only difference is when one
string is the prefix of the other string, in which case
name_compare() returns -1/+1 to show which one is longer, and
cache_name_compare() returns the difference of the lengths to show
the same information.

Unify these three functions by using the implementation from
cache_name_compare().  This does not make any difference to the
existing and future callers, as they must be paying attention only
to the sign of the returned value (and not the magnitude) because
the original implementations of these two functions return values
returned by memcmp(3) when the one string is not a prefix of the
other string, and the only thing memcmp(3) guarantees its callers is
the sign of the returned value, not the magnitude.

Signed-off-by: Jeremiah Mahler &lt;jmmahler@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>dir.c:trim_trailing_spaces(): fix for " \ " sequence</title>
<updated>2014-06-02T22:48:48Z</updated>
<author>
<name>Pasha Bolokhov</name>
<email>pasha.bolokhov@gmail.com</email>
</author>
<published>2014-06-02T22:36:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e61a6c1d8272f9d7bdc861ed28bfac5fb7e33556'/>
<id>urn:sha1:e61a6c1d8272f9d7bdc861ed28bfac5fb7e33556</id>
<content type='text'>
Discard the unnecessary 'nr_spaces' variable, remove 'strlen()' and
improve the 'if' structure.  Switch to pointers instead of integers
to control the loop.

Slightly more rare occurrences of 'text  \    ' with a backslash
in between spaces are handled correctly.  Namely, the code in
7e2e4b37 (dir: ignore trailing spaces in exclude patterns, 2014-02-09)
does not reset 'last_space' when a backslash is encountered and the above
line stays intact as a result.

Add a test at the end of t/t0008-ignores.sh to exhibit this behavior.

Signed-off-by: Pasha Bolokhov &lt;pasha.bolokhov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cb/aix'</title>
<updated>2014-04-03T19:38:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-04-03T19:38:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8ba87adad637b402fb309754e213ec40b74e4f18'/>
<id>urn:sha1:8ba87adad637b402fb309754e213ec40b74e4f18</id>
<content type='text'>
* cb/aix:
  tests: don't rely on strerror text when testing rmdir failure
  dir.c: make git_fnmatch() not inline
</content>
</entry>
<entry>
<title>dir.c: make git_fnmatch() not inline</title>
<updated>2014-03-31T18:50:15Z</updated>
<author>
<name>Charles Bailey</name>
<email>cbailey32@bloomberg.net</email>
</author>
<published>2014-03-29T15:39:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1f26ce615ab4b74cdd018e5d543138c2d188c3d8'/>
<id>urn:sha1:1f26ce615ab4b74cdd018e5d543138c2d188c3d8</id>
<content type='text'>
Now that it calls a static inline function, it cannot be an inline
definition with external linkage. Remove inline and make it an
external definition.

Signed-off-by: Charles Bailey &lt;cbailey32@bloomberg.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'dd/use-alloc-grow'</title>
<updated>2014-03-18T20:50:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-03-18T20:50:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fe9122a35213827348c521a16ffd0cf2652c4ac5'/>
<id>urn:sha1:fe9122a35213827348c521a16ffd0cf2652c4ac5</id>
<content type='text'>
Replace open-coded reallocation with ALLOC_GROW() macro.

* dd/use-alloc-grow:
  sha1_file.c: use ALLOC_GROW() in pretend_sha1_file()
  read-cache.c: use ALLOC_GROW() in add_index_entry()
  builtin/mktree.c: use ALLOC_GROW() in append_to_tree()
  attr.c: use ALLOC_GROW() in handle_attr_line()
  dir.c: use ALLOC_GROW() in create_simplify()
  reflog-walk.c: use ALLOC_GROW()
  replace_object.c: use ALLOC_GROW() in register_replace_object()
  patch-ids.c: use ALLOC_GROW() in add_commit()
  diffcore-rename.c: use ALLOC_GROW()
  diff.c: use ALLOC_GROW()
  commit.c: use ALLOC_GROW() in register_commit_graft()
  cache-tree.c: use ALLOC_GROW() in find_subtree()
  bundle.c: use ALLOC_GROW() in add_to_ref_list()
  builtin/pack-objects.c: use ALLOC_GROW() in check_pbase_path()
</content>
</entry>
<entry>
<title>Merge branch 'nd/no-more-fnmatch'</title>
<updated>2014-03-14T21:25:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-03-14T21:25:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=650c90a18506ce05e2be349d83fe1cef3dc7f8cb'/>
<id>urn:sha1:650c90a18506ce05e2be349d83fe1cef3dc7f8cb</id>
<content type='text'>
We started using wildmatch() in place of fnmatch(3); complete the
process and stop using fnmatch(3).

* nd/no-more-fnmatch:
  actually remove compat fnmatch source code
  stop using fnmatch (either native or compat)
  Revert "test-wildmatch: add "perf" command to compare wildmatch and fnmatch"
  use wildmatch() directly without fnmatch() wrapper
</content>
</entry>
<entry>
<title>Merge branch 'nd/gitignore-trailing-whitespace'</title>
<updated>2014-03-14T21:23:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-03-14T21:23:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dfcd354cdf38ff119c05e6e5f0e434bbc163ba41'/>
<id>urn:sha1:dfcd354cdf38ff119c05e6e5f0e434bbc163ba41</id>
<content type='text'>
Trailing whitespaces in .gitignore files, unless they are quoted for
fnmatch(3), e.g. "path\ ", are warned and ignored.

Strictly speaking, this is a backward incompatible change, but very
unlikely to bite any sane user and adjusting should be obvious and
easy.

* nd/gitignore-trailing-whitespace:
  t0008: skip trailing space test on Windows
  dir: ignore trailing spaces in exclude patterns
  dir: warn about trailing spaces in exclude patterns
</content>
</entry>
<entry>
<title>dir.c: use ALLOC_GROW() in create_simplify()</title>
<updated>2014-03-03T22:54:29Z</updated>
<author>
<name>Dmitry S. Dolzhenko</name>
<email>dmitrys.dolzhenko@yandex.ru</email>
</author>
<published>2014-03-03T22:31:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9af49f822bc1e4f00b356e052f666ae7714a0399'/>
<id>urn:sha1:9af49f822bc1e4f00b356e052f666ae7714a0399</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>
</feed>
