<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-compat-util.h, branch v2.3.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-03-14T05:56:07Z</updated>
<entry>
<title>Merge branch 'bw/kwset-use-unsigned' into maint</title>
<updated>2015-03-14T05:56:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-14T05:56:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ae8ada450a9103d2fe94ac9baf072fd31de08c30'/>
<id>urn:sha1:ae8ada450a9103d2fe94ac9baf072fd31de08c30</id>
<content type='text'>
The borrowed code in kwset API did not follow our usual convention
to use "unsigned char" to store values that range from 0-255.

* bw/kwset-use-unsigned:
  kwset: use unsigned char to store values with high-bit set
</content>
</entry>
<entry>
<title>Merge branch 'rj/no-xopen-source-for-cygwin' into maint</title>
<updated>2015-03-06T22:57:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-06T22:57:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f69f5f19cfae949b2bbd6c6ffbb990b6a00d04b0'/>
<id>urn:sha1:f69f5f19cfae949b2bbd6c6ffbb990b6a00d04b0</id>
<content type='text'>
Code cleanups.

* rj/no-xopen-source-for-cygwin:
  git-compat-util.h: remove redundant code
</content>
</entry>
<entry>
<title>Merge branch 'es/squelch-openssl-warnings-on-macosx' into maint</title>
<updated>2015-03-05T21:13:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-05T21:13:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e591339ce7632f3c9000f0fde8ee4813f061a11e'/>
<id>urn:sha1:e591339ce7632f3c9000f0fde8ee4813f061a11e</id>
<content type='text'>
An earlier workaround to squelch unhelpful deprecation warnings
from the complier on Mac OSX unnecessarily set minimum required
version of the OS, which the user might want to raise (or lower)
for other reasons.

* es/squelch-openssl-warnings-on-macosx:
  git-compat-util: do not step on MAC_OS_X_VERSION_MIN_REQUIRED
</content>
</entry>
<entry>
<title>kwset: use unsigned char to store values with high-bit set</title>
<updated>2015-03-02T20:32:24Z</updated>
<author>
<name>Ben Walton</name>
<email>bdwalton@gmail.com</email>
</author>
<published>2015-03-02T19:22:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=189c860c9ec5deb95845c056ca5c15b58970158e'/>
<id>urn:sha1:189c860c9ec5deb95845c056ca5c15b58970158e</id>
<content type='text'>
Sun Studio on Solaris issues warnings about improper initialization
values being used when defining tolower_trans_tbl[] in ctype.c.  The
array wants to store values with high-bit set and treat them as
values between 128 to 255.  Unlike the rest of the Git codebase
where we explicitly specify 'unsigned char' for such variables and
arrays, however, kwset code we borrowed from elsewhere uses 'char'
for this and other variables.

Fix the declarations to explicitly use 'unsigned char' where
necessary to bring it in line with the rest of the Git.

Signed-off-by: Ben Walton &lt;bdwalton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/blame-commit-label' into maint</title>
<updated>2015-02-25T06:09:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-25T06:09:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=faf723a631aff822b4808c496c0970edb0ca2a99'/>
<id>urn:sha1:faf723a631aff822b4808c496c0970edb0ca2a99</id>
<content type='text'>
"git blame HEAD -- missing" failed to correctly say "HEAD" when it
tried to say "No such path 'missing' in HEAD".

* jk/blame-commit-label:
  blame.c: fix garbled error message
  use xstrdup_or_null to replace ternary conditionals
  builtin/commit.c: use xstrdup_or_null instead of envdup
  builtin/apply.c: use xstrdup_or_null instead of null_strdup
  git-compat-util: add xstrdup_or_null helper
</content>
</entry>
<entry>
<title>git-compat-util.h: remove redundant code</title>
<updated>2015-02-23T02:56:23Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsay1.demon.co.uk</email>
</author>
<published>2015-02-23T00:07:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=33baa6983de95da801ba710560740e263f8fc150'/>
<id>urn:sha1:33baa6983de95da801ba710560740e263f8fc150</id>
<content type='text'>
Since commit 3a0a3a89 ("git-compat-util.h: don't define _XOPEN_SOURCE
on cygwin", 23-11-2014) removed the definition of _XOPEN_SOURCE on
cygwin, the code within a pre-processor conditional further down the
file became redundant. Remove the redundant code.

This effectively reverts commit 41b20017 ("Fix an "implicit function
definition" warning", 03-03-2007).

Signed-off-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-compat-util: do not step on MAC_OS_X_VERSION_MIN_REQUIRED</title>
<updated>2015-02-09T22:09:21Z</updated>
<author>
<name>Kyle J. McKay</name>
<email>mackyle@gmail.com</email>
</author>
<published>2015-02-06T09:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=88c03eb5775546a2cae0d8cc9025ef7969b23485'/>
<id>urn:sha1:88c03eb5775546a2cae0d8cc9025ef7969b23485</id>
<content type='text'>
MAC_OS_X_VERSION_MIN_REQUIRED may be defined by the builder to a
specific version in order to produce compatible binaries for a
particular system.  Blindly defining it to MAC_OS_X_VERSION_10_6
is bad.

Additionally MAC_OS_X_VERSION_10_6 will not be defined on older
systems and should AvailabilityMacros.h be included on such as
system an error will result.  However, using the explicit value
of 1060 (which is what MAC_OS_X_VERSION_10_6 is defined to) does
not solve the problem.

The changes that introduced stepping on MAC_OS_X_VERSION_MIN were
made in b195aa00 (git-compat-util: suppress unavoidable
Apple-specific deprecation warnings) to avoid deprecation
warnings.

Instead of blindly setting MAC_OS_X_VERSION_MIN to 1060 change
the definition of DEPRECATED_ATTRIBUTE to empty to avoid the
warnings.  This preserves any MAC_OS_X_VERSION_MIN_REQUIRED
setting while avoiding the warnings as intended by b195aa00.

Signed-off-by: Kyle J. McKay &lt;mackyle@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rh/autoconf-rhel3'</title>
<updated>2015-01-14T20:37:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-01-14T20:37:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=63a0e83ea6ea1e9d46bfd9e8c1298c6ca9f077ee'/>
<id>urn:sha1:63a0e83ea6ea1e9d46bfd9e8c1298c6ca9f077ee</id>
<content type='text'>
Build update for older RHEL.

* rh/autoconf-rhel3:
  configure.ac: check for HMAC_CTX_cleanup
  configure.ac: check for clock_gettime and CLOCK_MONOTONIC
  configure.ac: check 'tv_nsec' field in 'struct stat'
</content>
</entry>
<entry>
<title>git-compat-util: add xstrdup_or_null helper</title>
<updated>2015-01-13T18:03:30Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-01-13T01:57:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d64ea0f83bd7e676778f833c57f969a94518a28d'/>
<id>urn:sha1:d64ea0f83bd7e676778f833c57f969a94518a28d</id>
<content type='text'>
It's a common idiom to duplicate a string if it is non-NULL,
or pass a literal NULL through. This is already a one-liner
in C, but you do have to repeat the name of the string
twice. So if there's a function call, you must write:

  const char *x = some_fun(...);
  return x ? xstrdup(x) : NULL;

instead of (with this patch) just:

  return xstrdup_or_null(some_fun(...));

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>configure.ac: check for HMAC_CTX_cleanup</title>
<updated>2015-01-09T23:33:57Z</updated>
<author>
<name>Reuben Hawkins</name>
<email>reubenhwk@gmail.com</email>
</author>
<published>2015-01-08T20:00:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=88e011814b9498ee1170d82462a19f72a86f9d82'/>
<id>urn:sha1:88e011814b9498ee1170d82462a19f72a86f9d82</id>
<content type='text'>
OpenSSL version 0.9.6b and before defined the function HMAC_cleanup.
Newer versions define HMAC_CTX_cleanup.  Check for HMAC_CTX_cleanup and
fall back to HMAC_cleanup when the newer function is missing.

Signed-off-by: Reuben Hawkins &lt;reubenhwk@gmail.com&gt;
Reviewed-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
