<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/usage.c, branch v1.6.4.5</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.6.4.5</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.6.4.5'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2009-06-27T18:14:53Z</updated>
<entry>
<title>die_errno(): double % in strerror() output just in case</title>
<updated>2009-06-27T18:14:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-06-27T15:58:45Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=f8b5a8e13cb4d60c8b630f92a8f07590ef218ec5'/>
<id>urn:sha1:f8b5a8e13cb4d60c8b630f92a8f07590ef218ec5</id>
<content type='text'>
[tr: handle border case where % is placed at end of buffer]

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Introduce die_errno() that appends strerror(errno) to die()</title>
<updated>2009-06-27T18:14:53Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-06-27T15:58:44Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=b875036e5a2ab569a2123abe9ebfe25258227951'/>
<id>urn:sha1:b875036e5a2ab569a2123abe9ebfe25258227951</id>
<content type='text'>
There are many calls to die() that do, or should, report
strerror(errno) to indicate how the syscall they guard failed.
Introduce a small helper function for this case.

Note:

- POSIX says vsnprintf can modify errno in some unlikely cases, so we
  have to use errno early.

- We take some care to pass the original format to die_routine(), in
  case someone wants to call die_errno() with custom format
  characters.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Increase the size of the die/warning buffer to avoid truncation</title>
<updated>2009-03-24T23:58:20Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2009-03-24T23:10:35Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=389d17677187f5e996022b7b8e0faf800608cb3a'/>
<id>urn:sha1:389d17677187f5e996022b7b8e0faf800608cb3a</id>
<content type='text'>
Long messages like those from lockfile.c when a lock can't be
obtained truncate with only 256 bytes in the message buffer.
Bump it to 1024 to give more space for these longer cases.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>usage.c: remove unused functions</title>
<updated>2008-09-29T14:30:16Z</updated>
<author>
<name>Nanako Shiraishi</name>
<email>nanako3@lavabit.com</email>
</author>
<published>2008-09-25T09:41:04Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=07ad5a157d5f73941abfc3a511725d32e4c023d4'/>
<id>urn:sha1:07ad5a157d5f73941abfc3a511725d32e4c023d4</id>
<content type='text'>
This removes three functions that are not used anywhere.

Signed-off-by: Nanako Shiraishi &lt;nanako3@lavabit.com&gt;
Acked-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>print warning/error/fatal messages in one shot</title>
<updated>2007-11-10T06:25:36Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2007-11-09T19:33:54Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=d048a96ee9bec968be0bdc9c43ffce61169545be'/>
<id>urn:sha1:d048a96ee9bec968be0bdc9c43ffce61169545be</id>
<content type='text'>
Not doing so is likely to create a messed up display when sent over the
sideband protocol.

Signed-off-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Rename warn() to warning() to fix symbol conflicts on BSD and Mac OS</title>
<updated>2007-03-31T08:11:11Z</updated>
<author>
<name>Theodore Ts'o</name>
<email>tytso@mit.edu</email>
</author>
<published>2007-03-30T23:07:05Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=46efd2d93ce39fd5c1a91f0a2f918f2d8bbfdf92'/>
<id>urn:sha1:46efd2d93ce39fd5c1a91f0a2f918f2d8bbfdf92</id>
<content type='text'>
This fixes a problem reported by Randal Schwartz:

&gt;I finally tracked down all the (albeit inconsequential) errors I was getting
&gt;on both OpenBSD and OSX.  It's the warn() function in usage.c.  There's
&gt;warn(3) in BSD-style distros.  It'd take a "great rename" to change it, but if
&gt;someone with better C skills than I have could do that, my linker and I would
&gt;appreciate it.

It was annoying to me, too, when I was doing some mergetool testing on
Mac OS X, so here's a fix.

Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
Cc: "Randal L. Schwartz" &lt;merlyn@stonehenge.com&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Introduce a global level warn() function.</title>
<updated>2006-12-22T06:59:34Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2006-12-22T00:48:32Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=fa39b6b5b11f9b580c515a7b4a8e4eb8eaa79b75'/>
<id>urn:sha1:fa39b6b5b11f9b580c515a7b4a8e4eb8eaa79b75</id>
<content type='text'>
Like the existing error() function the new warn() function can be
used to describe a situation that probably should not be occuring,
but which the user (and Git) can continue to work around without
running into too many problems.

An example situation is a bad commit SHA1 found in a reflog.
Attempting to read this record out of the reflog isn't really an
error as we have skipped over it in the past.

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>usage: minimum type fix.</title>
<updated>2006-06-24T07:12:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-06-24T05:44:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=ce88ac5b129dd562a1062522039366ebbf1157e1'/>
<id>urn:sha1:ce88ac5b129dd562a1062522039366ebbf1157e1</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Customizable error handlers</title>
<updated>2006-06-24T07:12:52Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@suse.cz</email>
</author>
<published>2006-06-24T02:34:38Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=39a3f5ea7c0352a530338d30d4e618f6b4db84e4'/>
<id>urn:sha1:39a3f5ea7c0352a530338d30d4e618f6b4db84e4</id>
<content type='text'>
This patch makes the usage(), die() and error() handlers customizable.
Nothing in the git code itself uses that but many other libgit users
(like Git.pm) will.

This is implemented using the mutator functions primarily because you
cannot directly modifying global variables of libgit from a program that
dlopen()ed it, apparently. But having functions for that is a better API
anyway.

Signed-off-by: Petr Baudis &lt;pasky@suse.cz&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Clean up compatibility definitions.</title>
<updated>2005-12-05T23:50:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-05T19:54:29Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=4050c0df8ec7043315e2192695de432875239775'/>
<id>urn:sha1:4050c0df8ec7043315e2192695de432875239775</id>
<content type='text'>
This attempts to clean up the way various compatibility
functions are defined and used.

 - A new header file, git-compat-util.h, is introduced.  This
   looks at various NO_XXX and does necessary function name
   replacements, equivalent of -Dstrcasestr=gitstrcasestr in the
   Makefile.

 - Those function name replacements are removed from the Makefile.

 - Common features such as usage(), die(), xmalloc() are moved
   from cache.h to git-compat-util.h; cache.h includes
   git-compat-util.h itself.

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