<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/compat, branch v2.9.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.9.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.9.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-07-11T17:44:13Z</updated>
<entry>
<title>Merge branch 'js/mingw-parameter-less-c-functions' into maint</title>
<updated>2016-07-11T17:44:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-07-11T17:44:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=76180a2ba45986af0a0399690fef0ecd823348a5'/>
<id>urn:sha1:76180a2ba45986af0a0399690fef0ecd823348a5</id>
<content type='text'>
Some platform-specific code had non-ANSI strict declarations of C
functions that do not take any parameters, which has been
corrected.

* js/mingw-parameter-less-c-functions:
  mingw: let the build succeed with DEVELOPER=1
</content>
</entry>
<entry>
<title>Merge branch 'rj/compat-regex-size-max-fix' into maint</title>
<updated>2016-07-06T20:06:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-07-06T20:06:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c0144452efbd4de667c26dacad7dfb9fbca99705'/>
<id>urn:sha1:c0144452efbd4de667c26dacad7dfb9fbca99705</id>
<content type='text'>
A compilation fix.

* rj/compat-regex-size-max-fix:
  regex: fix a SIZE_MAX macro redefinition warning
</content>
</entry>
<entry>
<title>mingw: let the build succeed with DEVELOPER=1</title>
<updated>2016-06-20T19:12:12Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2016-06-18T12:38:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0767172b9068b225c06fd7ce66422e5936ec60a2'/>
<id>urn:sha1:0767172b9068b225c06fd7ce66422e5936ec60a2</id>
<content type='text'>
The recently introduced developer flags identified a couple of
old-style function declarations in the Windows-specific code where
the parameter list was left empty instead of specifying "void"
explicitly. Let's just fix them.

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>regex: fix a SIZE_MAX macro redefinition warning</title>
<updated>2016-06-07T02:22:00Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsayjones.plus.com</email>
</author>
<published>2016-06-07T00:35:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bd8f0055836e7f9c5010d5ed81d3b20a835e44c8'/>
<id>urn:sha1:bd8f0055836e7f9c5010d5ed81d3b20a835e44c8</id>
<content type='text'>
Since commit 56a1a3ab ("Silence GCC's \"cast of pointer to integer of a
different size\" warning", 26-10-2015), sparse has been issuing a macro
redefinition warning for the SIZE_MAX macro. However, gcc did not issue
any such warning.

After commit 56a1a3ab, in terms of the order of #includes and #defines,
the code looked something like:

  $ cat -n junk.c
       1	#include &lt;stddef.h&gt;
       2
       3	#define SIZE_MAX ((size_t) -1)
       4
       5	#include &lt;stdint.h&gt;
       6
       7	int main(int argc, char *argv[])
       8	{
       9		return 0;
      10	}
  $
  $ gcc junk.c
  $

However, if you compile that file with -Wsystem-headers, then it will
also issue a warning. Having set -Wsystem-headers in CFLAGS, using the
config.mak file, then (on cygwin):

  $ make compat/regex/regex.o
      CC compat/regex/regex.o
  In file included from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/stdint.h:9:0,
                   from compat/regex/regcomp.c:21,
                   from compat/regex/regex.c:77:
  /usr/include/stdint.h:362:0: warning: "SIZE_MAX" redefined
   #define SIZE_MAX (__SIZE_MAX__)
   ^
  In file included from compat/regex/regex.c:69:0:
  compat/regex/regex_internal.h:108:0: note: this is the location of the previous definition
   # define SIZE_MAX ((size_t) -1)
   ^
  $

The compilation of the compat/regex code is somewhat unusual in that the
regex.c file directly #includes the other c files (regcomp.c, regexec.c
and regex_internal.c). Commit 56a1a3ab added an #include of &lt;stdint.h&gt;
to the regcomp.c file, which results in the redefinition, since this is
included after the regex_internal.h header. This header file contains a
'fallback' definition for SIZE_MAX, in order to support systems which do
not have the &lt;stdint.h&gt; header (the HAVE_STDINT_H macro is not defined).

In order to suppress the warning, we move the #include of &lt;stdint.h&gt;
from regcomp.c to the start of the compilation unit, close to the top
of regex.c, prior to the #include of the regex_internal.h header.

Signed-off-by: Ramsay Jones &lt;ramsay@ramsayjones.plus.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'kb/msys2-tty' into maint</title>
<updated>2016-06-06T21:27:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-06-06T21:27:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1676827c859d838dc104a21f993af40d01586c0f'/>
<id>urn:sha1:1676827c859d838dc104a21f993af40d01586c0f</id>
<content type='text'>
The "are we talking with TTY, doing an interactive session?"
detection has been updated to work better for "Git for Windows".

* kb/msys2-tty:
  mingw: make isatty() recognize MSYS2's pseudo terminals (/dev/pty*)
</content>
</entry>
<entry>
<title>Merge branch 'kb/msys2-tty'</title>
<updated>2016-05-30T01:06:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-05-30T01:06:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=07ffe8716f8be04d838915402b482c5ee03227d4'/>
<id>urn:sha1:07ffe8716f8be04d838915402b482c5ee03227d4</id>
<content type='text'>
The "are we talking with TTY, doing an interactive session?"
detection has been updated to work better for "Git for Windows".

* kb/msys2-tty:
  mingw: make isatty() recognize MSYS2's pseudo terminals (/dev/pty*)
</content>
</entry>
<entry>
<title>Merge branch 'js/windows-dotgit' into maint</title>
<updated>2016-05-26T20:17:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-05-26T20:17:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e29300d69fb8e003b36f155a5f286d72ee5a557f'/>
<id>urn:sha1:e29300d69fb8e003b36f155a5f286d72ee5a557f</id>
<content type='text'>
On Windows, .git and optionally any files whose name starts with a
dot are now marked as hidden, with a core.hideDotFiles knob to
customize this behaviour.

* js/windows-dotgit:
  mingw: remove unnecessary definition
  mingw: introduce the 'core.hideDotFiles' setting
</content>
</entry>
<entry>
<title>Merge branch 'lp/typofixes' into maint</title>
<updated>2016-05-26T20:17:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-05-26T20:17:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d07211b5faefc9d94fe776cd5b50682544ad3257'/>
<id>urn:sha1:d07211b5faefc9d94fe776cd5b50682544ad3257</id>
<content type='text'>
Typofixes.

* lp/typofixes:
  typofix: assorted typofixes in comments, documentation and messages
</content>
</entry>
<entry>
<title>mingw: make isatty() recognize MSYS2's pseudo terminals (/dev/pty*)</title>
<updated>2016-05-26T20:12:02Z</updated>
<author>
<name>Karsten Blees</name>
<email>blees@dcon.de</email>
</author>
<published>2016-04-27T15:16:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f7f90e0f4f58d493242078d17c0eba41dd3f1f79'/>
<id>urn:sha1:f7f90e0f4f58d493242078d17c0eba41dd3f1f79</id>
<content type='text'>
MSYS2 emulates pseudo terminals via named pipes, and isatty() returns 0
for such file descriptors. Therefore, some interactive functionality
(such as launching a pager, asking if a failed unlink should be repeated
etc.) doesn't work when run in a terminal emulator that uses MSYS2's
ptys (such as mintty).

However, MSYS2 uses special names for its pty pipes ('msys-*-pty*'),
which allows us to distinguish them from normal piped input / output.

On startup, check if stdin / stdout / stderr are connected to such pipes
using the NtQueryObject API from NTDll.dll. If the names match, adjust
the flags in MSVCRT's ioinfo structure accordingly.

Signed-off-by: Karsten Blees &lt;blees@dcon.de&gt;
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>Merge branch 'jk/push-client-deadlock-fix'</title>
<updated>2016-05-18T22:11:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-05-18T22:11:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b153d2ae9206f752dd383c7bc30a5ab246ee5bcc'/>
<id>urn:sha1:b153d2ae9206f752dd383c7bc30a5ab246ee5bcc</id>
<content type='text'>
Some Windows SDK lacks pthread_sigmask() implementation and fails
to compile the recently updated "git push" codepath that uses it.

* jk/push-client-deadlock-fix:
  Windows: only add a no-op pthread_sigmask() when needed
  Windows: add pthread_sigmask() that does nothing
</content>
</entry>
</feed>
