<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/bugreport.c, branch v2.30.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.30.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.30.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2020-12-01T21:05:37Z</updated>
<entry>
<title>builtin/bugreport.c: use thread-safe localtime_r()</title>
<updated>2020-12-01T21:05:37Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2020-12-01T00:30:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4f6460df55cdccdda9d2a0aad4c6b578c007e01a'/>
<id>urn:sha1:4f6460df55cdccdda9d2a0aad4c6b578c007e01a</id>
<content type='text'>
To generate its filename, the 'git bugreport' builtin asks the system
for the current time with 'localtime()'. Since this uses a shared
buffer, it is not thread-safe.

Even though 'git bugreport' is not multi-threaded, using localtime() can
trigger some static analysis tools to complain, and a quick

    $ git grep -oh 'localtime\(_.\)\?' -- **/*.c | sort | uniq -c

shows that the only usage of the thread-unsafe 'localtime' is in a piece
of documentation.

So, convert this instance to use the thread-safe version for
consistency, and to appease some analysis tools.

Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/slimmed-down'</title>
<updated>2020-09-03T19:37:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-09-03T19:37:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=afd49c39dd0089ab887f77be0a8a5a2fc5054cfa'/>
<id>urn:sha1:afd49c39dd0089ab887f77be0a8a5a2fc5054cfa</id>
<content type='text'>
Trim an unused binary and turn a bunch of commands into built-in.

* jk/slimmed-down:
  drop vcs-svn experiment
  make git-fast-import a builtin
  make git-bugreport a builtin
  make credential helpers builtins
  Makefile: drop builtins from MSVC pdb list
</content>
</entry>
<entry>
<title>make git-bugreport a builtin</title>
<updated>2020-08-13T18:02:12Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2020-08-13T14:59:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d7a5649c82dfa83ba8d0253e4140f242dca859a7'/>
<id>urn:sha1:d7a5649c82dfa83ba8d0253e4140f242dca859a7</id>
<content type='text'>
There's no reason that bugreport has to be a separate binary. And since
it links against libgit.a, it has a rather large disk footprint. Let's
make it a builtin, which reduces the size of a stripped installation
from 24MB to 22MB.

This also simplifies our Makefile a bit. And we can take advantage of
builtin niceties like RUN_SETUP_GENTLY.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
