<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/strbuf.c, branch v1.7.3.5</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.7.3.5</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.7.3.5'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2010-01-21T04:28:50Z</updated>
<entry>
<title>Merge branch 'ap/merge-backend-opts'</title>
<updated>2010-01-21T04:28:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-21T04:28:50Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=fcb2a7e4a3c7899a3432f5804889fa3ea5779220'/>
<id>urn:sha1:fcb2a7e4a3c7899a3432f5804889fa3ea5779220</id>
<content type='text'>
* ap/merge-backend-opts:
  Document that merge strategies can now take their own options
  Extend merge-subtree tests to test -Xsubtree=dir.
  Make "subtree" part more orthogonal to the rest of merge-recursive.
  pull: Fix parsing of -X&lt;option&gt;
  Teach git-pull to pass -X&lt;option&gt; to git-merge
  git merge -X&lt;option&gt;
  git-merge-file --ours, --theirs

Conflicts:
	git-compat-util.h
</content>
</entry>
<entry>
<title>Merge branch 'jk/warn-author-committer-after-commit'</title>
<updated>2010-01-20T22:40:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-20T22:40:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=0877510ad4e8b951b08f9cbb25cfc0d994468979'/>
<id>urn:sha1:0877510ad4e8b951b08f9cbb25cfc0d994468979</id>
<content type='text'>
* jk/warn-author-committer-after-commit:
  user_ident_sufficiently_given(): refactor the logic to be usable from elsewhere
  commit.c::print_summary: do not release the format string too early
  commit: allow suppression of implicit identity advice
  commit: show interesting ident information in summary
  strbuf: add strbuf_addbuf_percentquote
  strbuf_expand: convert "%%" to "%"

Conflicts:
	builtin-commit.c
	ident.c
</content>
</entry>
<entry>
<title>git merge -X&lt;option&gt;</title>
<updated>2010-01-18T06:45:06Z</updated>
<author>
<name>Avery Pennarun</name>
<email>apenwarr@gmail.com</email>
</author>
<published>2009-11-26T02:23:55Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=8cc5b29065e19267cbc08b39c34674b02c2e3d59'/>
<id>urn:sha1:8cc5b29065e19267cbc08b39c34674b02c2e3d59</id>
<content type='text'>
Teach "-X &lt;option&gt;" command line argument to "git merge" that is passed to
strategy implementations.  "ours" and "theirs" autoresolution introduced
by the previous commit can be asked to the recursive strategy.

Signed-off-by: Avery Pennarun &lt;apenwarr@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>strbuf: add strbuf_addbuf_percentquote</title>
<updated>2010-01-14T17:25:15Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2010-01-13T17:36:42Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=361df5df77255321b2ca409d892b4c24b7b0441d'/>
<id>urn:sha1:361df5df77255321b2ca409d892b4c24b7b0441d</id>
<content type='text'>
This is handy for creating strings which will be fed to printf() or
strbuf_expand().

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>strbuf_expand: convert "%%" to "%"</title>
<updated>2010-01-14T17:24:42Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2010-01-13T17:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=0a0416a34a7ef5c64f4e0226371e4cab8c1ba982'/>
<id>urn:sha1:0a0416a34a7ef5c64f4e0226371e4cab8c1ba982</id>
<content type='text'>
The only way to safely quote arbitrary text in a pretty-print user
format is to replace instances of "%" with "%x25". This is slightly
unreadable, and many users would expect "%%" to produce a single
"%", as that is what printf format specifiers do.

This patch converts "%%" to "%" for all users of strbuf_expand():

 (1) git-daemon interpolated paths

 (2) pretty-print user formats

 (3) merge driver command lines

Case (1) was already doing the conversion itself outside of
strbuf_expand(). Case (2) is the intended beneficiary of this patch.
Case (3) users probably won't notice, but as this is user-facing
behavior, consistently providing the quoting mechanism makes sense.

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>strbuf.c: remove unused function</title>
<updated>2010-01-12T09:06:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-12T05:16:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=229d8107470ded5e5e6c43cf5daeabf382cce9d1'/>
<id>urn:sha1:229d8107470ded5e5e6c43cf5daeabf382cce9d1</id>
<content type='text'>
strbuf_tolower() is not used anywhere.

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://git.stealer.net/cgit.cgi/user/sven/git.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>fread does not return negative on error</title>
<updated>2009-06-23T23:57:15Z</updated>
<author>
<name>Roel Kluin</name>
<email>roel.kluin@gmail.com</email>
</author>
<published>2009-06-22T16:42:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6651c3f706cc47d8055ab43f9f7907202d10655d'/>
<id>urn:sha1:6651c3f706cc47d8055ab43f9f7907202d10655d</id>
<content type='text'>
size_t res cannot be less than 0. fread returns 0 on error.

Reported-by: Ingo Molnar &lt;mingo@elte.hu&gt;
Signed-off-by: Roel Kluin &lt;roel.kluin@gmail.com&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://git.stealer.net/cgit.cgi/user/sven/git.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://git.stealer.net/cgit.cgi/user/sven/git.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>
</feed>
