<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/strbuf.h, branch v1.6.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.6.6.3</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.6.6.3'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2009-11-16T02:24:58Z</updated>
<entry>
<title>Check the format of more printf-type functions</title>
<updated>2009-11-16T02:24:58Z</updated>
<author>
<name>Tarmigan Casebolt</name>
<email>tarmigan+git@gmail.com</email>
</author>
<published>2009-11-14T21:33:13Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=28bea9e53481fddcb12e63d8c049f0ff2917a573'/>
<id>urn:sha1:28bea9e53481fddcb12e63d8c049f0ff2917a573</id>
<content type='text'>
We already have these checks in many printf-type functions that have
prototypes which are in header files.  Add these same checks to some
more prototypes in header functions and to static functions in .c
files.

cc: Miklos Vajna &lt;vmiklos@frugalware.org&gt;
Signed-off-by: Tarmigan Casebolt &lt;tarmigan+git@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>strbuf: add new function strbuf_getwholeline()</title>
<updated>2009-08-05T19:13:56Z</updated>
<author>
<name>Brandon Casey</name>
<email>drafnel@gmail.com</email>
</author>
<published>2009-08-05T03:31:56Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c7e4f0d78aaac33d5e3cec54cddd40439e77d16c'/>
<id>urn:sha1:c7e4f0d78aaac33d5e3cec54cddd40439e77d16c</id>
<content type='text'>
This function is just like strbuf_getline() except it retains the
line-termination character.  This function will be used by the mailinfo
and mailsplit builtins which require the entire line for parsing.

Signed-off-by: Brandon Casey &lt;drafnel@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix typos / spelling in comments</title>
<updated>2009-04-23T02:02:12Z</updated>
<author>
<name>Mike Ralphson</name>
<email>mike@abacus.co.uk</email>
</author>
<published>2009-04-17T18:13:30Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=3ea3c215c02dc4a4e7d0881c25b2223540960797'/>
<id>urn:sha1:3ea3c215c02dc4a4e7d0881c25b2223540960797</id>
<content type='text'>
Signed-off-by: Mike Ralphson &lt;mike@abacus.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>strbuf_check_branch_ref(): a helper to check a refname for a branch</title>
<updated>2009-03-23T06:52:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-21T21:35:51Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a2fab531bbb00ff64335906e22854365be2eb5c7'/>
<id>urn:sha1:a2fab531bbb00ff64335906e22854365be2eb5c7</id>
<content type='text'>
This allows a common calling sequence

	strbuf_branchname(&amp;ref, name);
	strbuf_splice(&amp;ref, 0, 0, "refs/heads/", 11);
	if (check_ref_format(ref.buf))
		die(...);

to be refactored into

	if (strbuf_check_branch_ref(&amp;ref, name))
		die(...);

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>strbuf_branchname(): a wrapper for branch name shorthands</title>
<updated>2009-03-23T06:44:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-21T20:17:30Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a552de75eb01f78046feaf7dc88e5e4833624ad5'/>
<id>urn:sha1:a552de75eb01f78046feaf7dc88e5e4833624ad5</id>
<content type='text'>
The function takes a user-supplied string that is supposed to be a branch
name, and puts it in a strbuf after expanding possible shorthand notation.

A handful of open coded sequence to do this in the existing code have been
changed to use this helper function.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add generic 'strbuf_readlink()' helper function</title>
<updated>2008-12-17T21:36:30Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2008-12-17T17:36:40Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=b11b7e13f48ee283738e21fea9f775cd40ca0562'/>
<id>urn:sha1:b11b7e13f48ee283738e21fea9f775cd40ca0562</id>
<content type='text'>
It was already what 'git apply' did in read_old_data(), just export it
as a real function, and make it be more generic.

In particular, this handles the case of the lstat() st_size data not
matching the readlink() return value properly (which apparently happens
at least on NTFS under Linux).  But as a result of this you could also
use the new function without even knowing how big the link is going to
be, and it will allocate an appropriately sized buffer.

So we pass in the st_size of the link as just a hint, rather than a
fixed requirement.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add strbuf_expand_dict_cb(), a helper for simple cases</title>
<updated>2008-11-24T03:55:47Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-11-22T23:09:30Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=9b864e730bda0e028a85387fa568429724582f22'/>
<id>urn:sha1:9b864e730bda0e028a85387fa568429724582f22</id>
<content type='text'>
The new callback function strbuf_expand_dict_cb() can be used together
with strbuf_expand() if there is only a small number of placeholders
for static replacement texts.  It expects its dictionary as an array of
placeholder+value pairs as context parameter, terminated by an entry
with the placeholder member set to NULL.

The new helper is intended to aid converting the remaining calls of
interpolate().  strbuf_expand() is smaller, more flexible and can be
used to go faster than interpolate(), so it should replace the latter.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>editor.c: Libify launch_editor()</title>
<updated>2008-07-26T00:09:38Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2008-07-25T16:28:42Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=7198203ae37c11327c0d01f1e37f3e74381755a9'/>
<id>urn:sha1:7198203ae37c11327c0d01f1e37f3e74381755a9</id>
<content type='text'>
This patch removes exit()/die() calls and builtin-specific messages
from launch_editor(), so that it can be used as a general libgit.a
function to launch an editor.

Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add some useful functions for strbuf manipulation.</title>
<updated>2008-07-13T21:04:04Z</updated>
<author>
<name>Lukas Sandström</name>
<email>lukass@etek.chalmers.se</email>
</author>
<published>2008-07-13T18:29:18Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=eacd6dc59411964cc025ba8a9897faa1fb1e6bc6'/>
<id>urn:sha1:eacd6dc59411964cc025ba8a9897faa1fb1e6bc6</id>
<content type='text'>
Signed-off-by: Lukas Sandström &lt;lukass@etek.chalmers.se&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Make some strbuf_*() struct strbuf arguments const.</title>
<updated>2008-07-13T20:59:34Z</updated>
<author>
<name>Lukas Sandström</name>
<email>lukass@etek.chalmers.se</email>
</author>
<published>2008-07-13T18:28:24Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=9b200fd68c799868c5c1383ef3eb34de7027f467'/>
<id>urn:sha1:9b200fd68c799868c5c1383ef3eb34de7027f467</id>
<content type='text'>
Signed-off-by: Lukas Sandström &lt;lukass@etek.chalmers.se&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
