<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/string-list.h, 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-21T17:23:36Z</updated>
<entry>
<title>string-list: add string_list initializer helper function</title>
<updated>2014-07-21T17:23:36Z</updated>
<author>
<name>Tanay Abhra</name>
<email>tanayabh@gmail.com</email>
</author>
<published>2014-07-18T09:18:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3ed3f5fe85ac3fa7f94ccaab59408a20db8c7a41'/>
<id>urn:sha1:3ed3f5fe85ac3fa7f94ccaab59408a20db8c7a41</id>
<content type='text'>
The string-list API has STRING_LIST_INIT_* macros to be used
to define variables with initializers, but lacks functions
to initialize an uninitialized piece of memory to be used as
a string-list at the run-time.
Introduce `string_list_init()` function for that.

Signed-off-by: Tanay Abhra &lt;tanayabh@gmail.com&gt;
Reviewed-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>string-list: spell all values out that are given to a string_list initializer</title>
<updated>2014-06-06T20:49:19Z</updated>
<author>
<name>Tanay Abhra</name>
<email>tanayabh@gmail.com</email>
</author>
<published>2014-06-03T09:13:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=acb3d22264fd3736f95f71aa38e1d6fa01f5e9e1'/>
<id>urn:sha1:acb3d22264fd3736f95f71aa38e1d6fa01f5e9e1</id>
<content type='text'>
STRING_LIST_INIT_{NODUP,DUP} initializers list values only
for earlier structure members, relying on the usual
convention in C that the omitted members are initailized to
0, i.e. the former is expanded to the latter:

	struct string_list l = STRING_LIST_INIT_DUP;
	struct string_list l = { NULL, 0, 0, 1 };

and the last member that is not mentioned (i.e. 'cmp') is
initialized to NULL.

While there is nothing wrong in this construct, spelling out
all the values where the macros are defined will serve also
as a documentation, so let's do so.

Signed-off-by: Tanay Abhra &lt;tanayabh@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ap/log-mailmap'</title>
<updated>2013-01-21T01:06:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-21T01:06:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=577f63e781d2f9b9a6862389b6e9d2ca2467afa2'/>
<id>urn:sha1:577f63e781d2f9b9a6862389b6e9d2ca2467afa2</id>
<content type='text'>
Teach commands in the "log" family to optionally pay attention to
the mailmap.

* ap/log-mailmap:
  log --use-mailmap: optimize for cases without --author/--committer search
  log: add log.mailmap configuration option
  log: grep author/committer using mailmap
  test: add test for --use-mailmap option
  log: add --use-mailmap option
  pretty: use mailmap to display username and email
  mailmap: add mailmap structure to rev_info and pp
  mailmap: simplify map_user() interface
  mailmap: remove email copy and length limitation
  Use split_ident_line to parse author and committer
  string-list: allow case-insensitive string list
</content>
</entry>
<entry>
<title>string-list: allow case-insensitive string list</title>
<updated>2013-01-07T23:59:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-07T20:24:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8dd5afc926acb9829ebf56e9b78826a5242cd638'/>
<id>urn:sha1:8dd5afc926acb9829ebf56e9b78826a5242cd638</id>
<content type='text'>
Some string list needs to be searched case insensitively, and for
that to work correctly, the string needs to be sorted case
insensitively from the beginning.

Allow a custom comparison function to be defined on a string list
instance and use it throughout in place of strcmp().

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