<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/technical/api-string-list.txt, 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>2013-01-02T18:36:59Z</updated>
<entry>
<title>Merge branch 'mh/ceiling'</title>
<updated>2013-01-02T18:36:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-02T18:36:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f470e901f21d7a2b408c3e54e33e07bcc94913b1'/>
<id>urn:sha1:f470e901f21d7a2b408c3e54e33e07bcc94913b1</id>
<content type='text'>
An element on GIT_CEILING_DIRECTORIES list that does not name the
real path to a directory (i.e. a symbolic link) could have caused
the GIT_DIR discovery logic to escape the ceiling.

* mh/ceiling:
  string_list_longest_prefix(): remove function
  setup_git_directory_gently_1(): resolve symlinks in ceiling paths
  longest_ancestor_length(): require prefix list entries to be normalized
  longest_ancestor_length(): take a string_list argument for prefixes
  longest_ancestor_length(): use string_list_split()
  Introduce new function real_path_if_valid()
  real_path_internal(): add comment explaining use of cwd
  Introduce new static function real_path_internal()
</content>
</entry>
<entry>
<title>string_list: add a function string_list_remove_empty_items()</title>
<updated>2012-11-08T16:34:08Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2012-11-04T07:07:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6bb2a1377b4b7a044f69d0107c38479180694fac'/>
<id>urn:sha1:6bb2a1377b4b7a044f69d0107c38479180694fac</id>
<content type='text'>
Signed-off-by: Michael Haggerty &lt;mhagger@alum.mit.edu&gt;
Acked-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>string_list_longest_prefix(): remove function</title>
<updated>2012-10-29T06:34:58Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2012-10-28T16:16:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=059b37934c611b1b9b735e0310ba282a0c7f5eba'/>
<id>urn:sha1:059b37934c611b1b9b735e0310ba282a0c7f5eba</id>
<content type='text'>
This function was added in f103f95b11d087f07c0c48bf784cd9197e18f203 in
the erroneous expectation that it would be used in the
reimplementation of longest_ancestor_length().  But it turned out to
be easier to use a function specialized for comparing path prefixes
(i.e., one that knows about slashes and root paths) than to prepare
the paths in such a way that a generic string prefix comparison
function can be used.  So delete string_list_longest_prefix() and its
documentation and test cases.

Signed-off-by: Michael Haggerty &lt;mhagger@alum.mit.edu&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>string_list API: document what "sorted" means</title>
<updated>2012-09-18T18:41:06Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2012-09-17T15:21:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1959bf6430fda685c46241f220f521a01f9469b7'/>
<id>urn:sha1:1959bf6430fda685c46241f220f521a01f9469b7</id>
<content type='text'>
The recent work on using string_list to represent the list of refs
that matched with the refs on the other side during fetch heavily
depends on the sort order by string_list's implementation, and
changing string_list will break it.  Document that it uses strcmp()
order, at least for now.

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>api-string-list.txt: initialize the string_list the easy way</title>
<updated>2012-09-12T18:43:25Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2012-09-12T14:04:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=51f3145c2834c8f1d94c5b7cf3790baf74b9f521'/>
<id>urn:sha1:51f3145c2834c8f1d94c5b7cf3790baf74b9f521</id>
<content type='text'>
In the demo code blurb, show how to initialize the string_list using
STRING_LIST_INIT_NODUP rather than memset().

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>string_list: add a function string_list_longest_prefix()</title>
<updated>2012-09-12T18:43:25Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2012-09-12T14:04:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f103f95b11d087f07c0c48bf784cd9197e18f203'/>
<id>urn:sha1:f103f95b11d087f07c0c48bf784cd9197e18f203</id>
<content type='text'>
Add a function that finds the longest string from a string_list that
is a prefix of a given string.

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>string_list: add a new function, string_list_remove_duplicates()</title>
<updated>2012-09-12T18:43:25Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2012-09-12T14:04:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=31d5451eed2677531c80177ff9dc8f5285f5a187'/>
<id>urn:sha1:31d5451eed2677531c80177ff9dc8f5285f5a187</id>
<content type='text'>
Add a function that deletes duplicate entries from a sorted
string_list.

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>string_list: add a new function, filter_string_list()</title>
<updated>2012-09-12T18:43:25Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2012-09-12T14:04:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eb5f0c7a616531a024a582b72ca6d8775ff98d46'/>
<id>urn:sha1:eb5f0c7a616531a024a582b72ca6d8775ff98d46</id>
<content type='text'>
This function allows entries that don't match a specified criterion to
be discarded from a string_list while preserving the order of the
remaining entries.

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>string_list: add two new functions for splitting strings</title>
<updated>2012-09-12T18:43:24Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2012-09-12T14:04:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ff919f965d20d003e3882c70de667f41a86349ac'/>
<id>urn:sha1:ff919f965d20d003e3882c70de667f41a86349ac</id>
<content type='text'>
Add two new functions, string_list_split() and
string_list_split_in_place().  These split a string into a string_list
on a separator character.  The first makes copies of the substrings
(leaving the input string untouched) and the second splits the
original string in place, overwriting the separator characters with
NULs and referring to the original string's memory.

These functions are similar to the strbuf_split_*() functions except
that they work with the more powerful string_list interface.

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>string_list: add function string_list_append_nodup()</title>
<updated>2012-09-12T18:43:24Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2012-09-12T14:04:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e448fed8e6ba9cd9237b7c8045c11cc40afc8595'/>
<id>urn:sha1:e448fed8e6ba9cd9237b7c8045c11cc40afc8595</id>
<content type='text'>
Add a new function that appends a string to a string_list without
copying it.  This can be used to pass ownership of an already-copied
string to a string_list that has strdup_strings set.

Signed-off-by: Michael Haggerty &lt;mhagger@alum.mit.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
