<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin-commit-tree.c, branch v1.5.6.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.5.6.4</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.5.6.4'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2008-05-14T19:34:44Z</updated>
<entry>
<title>Provide git_config with a callback-data parameter</title>
<updated>2008-05-14T19:34:44Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2008-05-14T17:46:53Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ef90d6d4208a5130185b04f06e5f90a5f9959fe3'/>
<id>urn:sha1:ef90d6d4208a5130185b04f06e5f90a5f9959fe3</id>
<content type='text'>
git_config() only had a function parameter, but no callback data
parameter.  This assumes that all callback functions only modify
global variables.

With this patch, every callback gets a void * parameter, and it is hoped
that this will help the libification effort.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Re-fix "builtin-commit: fix --signoff"</title>
<updated>2007-12-09T08:55:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-12-09T01:32:08Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=774751a8bc594a5b56039bbdc43c45e3882dd804'/>
<id>urn:sha1:774751a8bc594a5b56039bbdc43c45e3882dd804</id>
<content type='text'>
An earlier fix to the said commit was incomplete; it mixed up the
meaning of the flag parameter passed to the internal fmt_ident()
function, so this corrects it.

git_author_info() and git_committer_info() can be told to issue a
warning when no usable user information is found, and optionally can be
told to error out.  Operations that actually use the information to
record a new commit or a tag will still error out, but the caller to
leave reflog record will just silently use bogus user information.

Not warning on misconfigured user information while writing a reflog
entry is somewhat debatable, but it is probably nicer to the users to
silently let it pass, because the only information you are losing is who
checked out the branch.

 * git_author_info() and git_committer_info() used to take 1 (positive
   int) to error out with a warning on misconfiguration; this is now
   signalled with a symbolic constant IDENT_ERROR_ON_NO_NAME.

 * These functions used to take -1 (negative int) to warn but continue;
   this is now signalled with a symbolic constant IDENT_WARN_ON_NO_NAME.

 * fmt_ident() function implements the above error reporting behaviour
   common to git_author_info() and git_committer_info().  A symbolic
   constant IDENT_NO_DATE can be or'ed in to the flag parameter to make
   it return only the "Name &lt;email@address.xz&gt;".

 * fmt_name() is a thin wrapper around fmt_ident() that always passes
   IDENT_ERROR_ON_NO_NAME and IDENT_NO_DATE.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Now that cache.h needs strbuf.h, remove useless includes.</title>
<updated>2007-09-17T00:30:03Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2007-09-15T13:56:50Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ba3ed09728cb25e004d3b732de14fca8aeb602f6'/>
<id>urn:sha1:ba3ed09728cb25e004d3b732de14fca8aeb602f6</id>
<content type='text'>
Signed-off-by: Pierre Habouzit &lt;madcoder@debian.org&gt;
Acked-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Strbuf API extensions and fixes.</title>
<updated>2007-09-10T19:48:24Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2007-09-10T10:35:04Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=f1696ee398e92bcea3cdc7b3da85d8e0f77f6c50'/>
<id>urn:sha1:f1696ee398e92bcea3cdc7b3da85d8e0f77f6c50</id>
<content type='text'>
  * Add strbuf_rtrim to remove trailing spaces.
  * Add strbuf_insert to insert data at a given position.
  * Off-by one fix in strbuf_addf: strbuf_avail() does not counts the final
    \0 so the overflow test for snprintf is the strict comparison. This is
    not critical as the growth mechanism chosen will always allocate _more_
    memory than asked, so the second test will not fail. It's some kind of
    miracle though.
  * Add size extension hints for strbuf_init and strbuf_read. If 0, default
    applies, else:
      + initial buffer has the given size for strbuf_init.
      + first growth checks it has at least this size rather than the
        default 8192.

Signed-off-by: Pierre Habouzit &lt;madcoder@debian.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Use strbuf API in apply, blame, commit-tree and diff</title>
<updated>2007-09-07T06:57:44Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2007-09-06T11:20:09Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=af6eb82262e35687aa8f00d688e327cb845973fa'/>
<id>urn:sha1:af6eb82262e35687aa8f00d688e327cb845973fa</id>
<content type='text'>
Signed-off-by: Pierre Habouzit &lt;madcoder@debian.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>init_buffer(): Kill buf pointer</title>
<updated>2007-04-25T20:45:12Z</updated>
<author>
<name>Luiz Fernando N. Capitulino</name>
<email>lcapitulino@mandriva.com.br</email>
</author>
<published>2007-04-25T14:18:41Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=3e0a93a5bf9fe10453599a94af8191f421ee3b16'/>
<id>urn:sha1:3e0a93a5bf9fe10453599a94af8191f421ee3b16</id>
<content type='text'>
We don't need it, it's possible to assign the block of memory to bufp

Signed-off-by: Luiz Fernando N. Capitulino &lt;lcapitulino@mandriva.com.br&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Cleanup check_valid in commit-tree.</title>
<updated>2007-02-28T05:40:18Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2007-02-27T15:00:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=66035a6b3d629b546daef3784f5351d58f4f17b1'/>
<id>urn:sha1:66035a6b3d629b546daef3784f5351d58f4f17b1</id>
<content type='text'>
This routine should be using the object_type enum rather than a
string comparsion, as the expected type is always supplied and is
known at compile time.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>convert object type handling from a string to a number</title>
<updated>2007-02-27T09:34:21Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2007-02-26T19:55:59Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=21666f1aae4e890d8f50924f9e80763b27e6a45d'/>
<id>urn:sha1:21666f1aae4e890d8f50924f9e80763b27e6a45d</id>
<content type='text'>
We currently have two parallel notation for dealing with object types
in the code: a string and a numerical value.  One of them is obviously
redundent, and the most used one requires more stack space and a bunch
of strcmp() all over the place.

This is an initial step for the removal of the version using a char array
found in object reading code paths.  The patch is unfortunately large but
there is no sane way to split it in smaller parts without breaking the
system.

Signed-off-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Don't force everybody to call setup_ident().</title>
<updated>2007-01-28T09:58:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-01-28T08:50:53Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=01754769ab9bf9ff2fe2b12590e7ee2c7c3448ca'/>
<id>urn:sha1:01754769ab9bf9ff2fe2b12590e7ee2c7c3448ca</id>
<content type='text'>
Back when only handful commands that created commit and tag were
the only users of committer identity information, it made sense
to explicitly call setup_ident() to pre-fill the default value
from the gecos information.  But it is much simpler for programs
to make the call automatic when get_ident() is called these days,
since many more programs want to use the information when updating
the reflog.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>commit-tree: cope with different ways "utf-8" can be spelled.</title>
<updated>2006-12-30T23:58:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-12-30T20:20:43Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=677cfed56ac530878b746ee4cca3ada8af384a81'/>
<id>urn:sha1:677cfed56ac530878b746ee4cca3ada8af384a81</id>
<content type='text'>
People can spell config.commitencoding differently from what we
internally have ("utf-8") to mean UTF-8.  Try to accept them and
treat them equally.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
