<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/cache-tree.c, branch v2.0.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.0.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.0.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-03-18T20:51:18Z</updated>
<entry>
<title>Merge branch 'rm/strchrnul-not-strlen'</title>
<updated>2014-03-18T20:51:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-03-18T20:51:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6f75e48323bc3071495025fd14105e9dffa9e8dd'/>
<id>urn:sha1:6f75e48323bc3071495025fd14105e9dffa9e8dd</id>
<content type='text'>
* rm/strchrnul-not-strlen:
  use strchrnul() in place of strchr() and strlen()
</content>
</entry>
<entry>
<title>Merge branch 'mh/simplify-cache-tree-find'</title>
<updated>2014-03-18T20:51:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-03-18T20:51:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=da2e0579adad88136b8a0a850d7325c398a401ac'/>
<id>urn:sha1:da2e0579adad88136b8a0a850d7325c398a401ac</id>
<content type='text'>
* mh/simplify-cache-tree-find:
  cache_tree_find(): use path variable when passing over slashes
  cache_tree_find(): remove early return
  cache_tree_find(): remove redundant check
  cache_tree_find(): fix comment formatting
  cache_tree_find(): find the end of path component using strchrnul()
  cache_tree_find(): remove redundant checks
</content>
</entry>
<entry>
<title>use strchrnul() in place of strchr() and strlen()</title>
<updated>2014-03-10T15:35:30Z</updated>
<author>
<name>Rohit Mani</name>
<email>rohit.mani@outlook.com</email>
</author>
<published>2014-03-08T06:48:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2c5495f7b60d6ddcd6a411b48d2f6dbc4a24717a'/>
<id>urn:sha1:2c5495f7b60d6ddcd6a411b48d2f6dbc4a24717a</id>
<content type='text'>
Avoid scanning strings twice, once with strchr() and then with
strlen(), by using strchrnul().

Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Rohit Mani &lt;rohit.mani@outlook.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cache_tree_find(): use path variable when passing over slashes</title>
<updated>2014-03-05T20:34:26Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2014-03-05T17:26:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3491047e14532f4c01e3459d59d914d9598721c5'/>
<id>urn:sha1:3491047e14532f4c01e3459d59d914d9598721c5</id>
<content type='text'>
The search for the end of the slashes is part of the update of the
path variable for the next iteration as opposed to an update of the
slash variable.  So iterate using path rather than slash.

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>cache_tree_find(): remove early return</title>
<updated>2014-03-05T20:34:05Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2014-03-05T17:26:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8b7e5f79723b0f2e1d3dca4e959ad2a2041e9453'/>
<id>urn:sha1:8b7e5f79723b0f2e1d3dca4e959ad2a2041e9453</id>
<content type='text'>
There is no need for an early

    return it;

from the loop if slash points at the end of the string, because that
is exactly what will happen when the while condition fails at the
start of the next iteration.

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>cache_tree_find(): remove redundant check</title>
<updated>2014-03-05T20:33:53Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2014-03-05T17:26:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=03b0403b4a957bb52f5266ac071869da32a3be0a'/>
<id>urn:sha1:03b0403b4a957bb52f5266ac071869da32a3be0a</id>
<content type='text'>
If *slash == '/', then it is necessarily non-NUL.

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>cache_tree_find(): fix comment formatting</title>
<updated>2014-03-05T20:33:46Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2014-03-05T17:26:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=79192b87ad6a57e2b2a6219f0a17e85ece759c0f'/>
<id>urn:sha1:79192b87ad6a57e2b2a6219f0a17e85ece759c0f</id>
<content type='text'>
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>cache_tree_find(): find the end of path component using strchrnul()</title>
<updated>2014-03-05T20:33:30Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2014-03-05T17:26:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=17e22ddc1c34858beece1b090b392d7c73d1c0a3'/>
<id>urn:sha1:17e22ddc1c34858beece1b090b392d7c73d1c0a3</id>
<content type='text'>
Suggested-by: Junio Hamano &lt;gitster@pobox.com&gt;
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>cache_tree_find(): remove redundant checks</title>
<updated>2014-03-05T20:33:02Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2014-03-05T17:26:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=72c378d8a618b9a57e4edf12700c51b0af86f124'/>
<id>urn:sha1:72c378d8a618b9a57e4edf12700c51b0af86f124</id>
<content type='text'>
slash is initialized to a value that cannot be NULL.  So remove the
guards against slash == NULL later in the loop.

Suggested-by: David Kastrup &lt;dak@gnu.org&gt;
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>cache-tree.c: use ALLOC_GROW() in find_subtree()</title>
<updated>2014-03-03T22:45:35Z</updated>
<author>
<name>Dmitry S. Dolzhenko</name>
<email>dmitrys.dolzhenko@yandex.ru</email>
</author>
<published>2014-03-03T22:31:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bcc7a03285a2f0173a2d8afcc951c6dc0fc4eda8'/>
<id>urn:sha1:bcc7a03285a2f0173a2d8afcc951c6dc0fc4eda8</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>
