<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/string-list.c, branch v1.7.9.7</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.7.9.7</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.7.9.7'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2011-08-14T21:19:35Z</updated>
<entry>
<title>string-list: Add API to remove an item from an unsorted list</title>
<updated>2011-08-14T21:19:35Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j.sixt@viscovery.net</email>
</author>
<published>2011-08-12T05:20:00Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=86d4b528d8a4752cc689279fb6d38c8697a507bb'/>
<id>urn:sha1:86d4b528d8a4752cc689279fb6d38c8697a507bb</id>
<content type='text'>
Teach the string-list API how to remove an entry in O(1) runtime by
moving the last entry to the vacated spot. As such, the routine works
only for unsorted lists.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>string_list_append: always set util pointer to NULL</title>
<updated>2011-02-14T18:55:03Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2011-02-12T05:18:51Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=62b8102c60a716e66cfd2a33e596e9d5be134267'/>
<id>urn:sha1:62b8102c60a716e66cfd2a33e596e9d5be134267</id>
<content type='text'>
It is not immediately obvious that the util field may
contain random bytes after appending an item. Especially
since the string_list_insert* functions _do_ explicitly zero
the util pointer.

This does not appear to be a bug in any current git code, as
all callers either fill in the util field immediately or
never use it. However, it is worth it to be less surprising
to new users of the string-list API who may expect it to be
intialized to NULL.

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>string_list: Fix argument order for string_list_append</title>
<updated>2010-06-27T17:06:52Z</updated>
<author>
<name>Julian Phillips</name>
<email>julian@quantumfyre.co.uk</email>
</author>
<published>2010-06-25T23:41:38Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1d2f80fa79cdc6f7f4fa1cefb47d7d19be3bc5ee'/>
<id>urn:sha1:1d2f80fa79cdc6f7f4fa1cefb47d7d19be3bc5ee</id>
<content type='text'>
Update the definition and callers of string_list_append to use the
string_list as the first argument.  This helps make the string_list
API easier to use by being more consistent.

Signed-off-by: Julian Phillips &lt;julian@quantumfyre.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>string_list: Fix argument order for string_list_lookup</title>
<updated>2010-06-27T17:06:51Z</updated>
<author>
<name>Julian Phillips</name>
<email>julian@quantumfyre.co.uk</email>
</author>
<published>2010-06-25T23:41:37Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e8c8b7139c87c3e3017d3bff07f91c4349850d58'/>
<id>urn:sha1:e8c8b7139c87c3e3017d3bff07f91c4349850d58</id>
<content type='text'>
Update the definition and callers of string_list_lookup to use the
string_list as the first argument.  This helps make the string_list
API easier to use by being more consistent.

Signed-off-by: Julian Phillips &lt;julian@quantumfyre.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>string_list: Fix argument order for string_list_insert_at_index</title>
<updated>2010-06-27T17:06:51Z</updated>
<author>
<name>Julian Phillips</name>
<email>julian@quantumfyre.co.uk</email>
</author>
<published>2010-06-25T23:41:36Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=aadceea641806b363ca555ffdc04109ea716c497'/>
<id>urn:sha1:aadceea641806b363ca555ffdc04109ea716c497</id>
<content type='text'>
Update the definition and callers of string_list_insert_at_index to
use the string_list as the first argument.  This helps make the
string_list API easier to use by being more consistent.

Signed-off-by: Julian Phillips &lt;julian@quantumfyre.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>string_list: Fix argument order for string_list_insert</title>
<updated>2010-06-27T17:06:51Z</updated>
<author>
<name>Julian Phillips</name>
<email>julian@quantumfyre.co.uk</email>
</author>
<published>2010-06-25T23:41:35Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=78a395d371ec9fd14297178ec98b8b1042a64fb6'/>
<id>urn:sha1:78a395d371ec9fd14297178ec98b8b1042a64fb6</id>
<content type='text'>
Update the definition and callers of string_list_insert to use the
string_list as the first argument.  This helps make the string_list
API easier to use by being more consistent.

Signed-off-by: Julian Phillips &lt;julian@quantumfyre.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>string_list: Fix argument order for for_each_string_list</title>
<updated>2010-06-27T17:06:51Z</updated>
<author>
<name>Julian Phillips</name>
<email>julian@quantumfyre.co.uk</email>
</author>
<published>2010-06-25T23:41:34Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=b684e977363ee5cb53d83c69f2298d7898c5f89a'/>
<id>urn:sha1:b684e977363ee5cb53d83c69f2298d7898c5f89a</id>
<content type='text'>
Update the definition and callers of for_each_string_list to use the
string_list as the first argument.  This helps make the string_list
API easier to use by being more consistent.

Signed-off-by: Julian Phillips &lt;julian@quantumfyre.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>string_list: Fix argument order for print_string_list</title>
<updated>2010-06-27T17:06:40Z</updated>
<author>
<name>Julian Phillips</name>
<email>julian@quantumfyre.co.uk</email>
</author>
<published>2010-06-25T23:41:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=cb944f6b5009e4788041a5194d73b92a0620c9d9'/>
<id>urn:sha1:cb944f6b5009e4788041a5194d73b92a0620c9d9</id>
<content type='text'>
Update the definition and callers of print_string_list to use the
string_list as the first argument.  This helps make the API easier to
use by being more consistent.

Signed-off-by: Julian Phillips &lt;julian@quantumfyre.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>string-list: add unsorted_string_list_lookup()</title>
<updated>2010-03-25T02:41:19Z</updated>
<author>
<name>Stephen Boyd</name>
<email>bebarino@gmail.com</email>
</author>
<published>2010-03-24T07:16:02Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e242148012196772e3fe2652d538fb923b91ca92'/>
<id>urn:sha1:e242148012196772e3fe2652d538fb923b91ca92</id>
<content type='text'>
Sometimes users need to lookup a string in an unsorted string_list. In
that case they should use this function instead of the version for
sorted strings.

Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>string-list: new for_each_string_list() function</title>
<updated>2009-02-27T23:19:08Z</updated>
<author>
<name>Jay Soffian</name>
<email>jaysoffian@gmail.com</email>
</author>
<published>2009-02-25T08:32:18Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c6f5a7a916b36fc9dd00bb6dce3b68260579abe1'/>
<id>urn:sha1:c6f5a7a916b36fc9dd00bb6dce3b68260579abe1</id>
<content type='text'>
Add a convenience function for iterating over a string_list's items via
a callback.

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