<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/compat/vcbuild, branch v2.2.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.2.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.2.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-06-03T19:06:40Z</updated>
<entry>
<title>Merge branch 'ks/tree-diff-nway'</title>
<updated>2014-06-03T19:06:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-06-03T19:06:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8eaf517835d0534767d6a54d12d072ce30276ad9'/>
<id>urn:sha1:8eaf517835d0534767d6a54d12d072ce30276ad9</id>
<content type='text'>
Instead of running N pair-wise diff-trees when inspecting a
N-parent merge, find the set of paths that were touched by walking
N+1 trees in parallel.  These set of paths can then be turned into
N pair-wise diff-tree results to be processed through rename
detections and such.  And N=2 case nicely degenerates to the usual
2-way diff-tree, which is very nice.

* ks/tree-diff-nway:
  mingw: activate alloca
  combine-diff: speed it up, by using multiparent diff tree-walker directly
  tree-diff: rework diff_tree() to generate diffs for multiparent cases as well
  Portable alloca for Git
  tree-diff: reuse base str(buf) memory on sub-tree recursion
  tree-diff: no need to call "full" diff_tree_sha1 from show_path()
  tree-diff: rework diff_tree interface to be sha1 based
  tree-diff: diff_tree() should now be static
  tree-diff: remove special-case diff-emitting code for empty-tree cases
  tree-diff: simplify tree_entry_pathcmp
  tree-diff: show_path prototype is not needed anymore
  tree-diff: rename compare_tree_entry -&gt; tree_entry_pathcmp
  tree-diff: move all action-taking code out of compare_tree_entry()
  tree-diff: don't assume compare_tree_entry() returns -1,0,1
  tree-diff: consolidate code for emitting diffs and recursion in one place
  tree-diff: show_tree() is not needed
  tree-diff: no need to pass match to skip_uninteresting()
  tree-diff: no need to manually verify that there is no mode change for a path
  combine-diff: move changed-paths scanning logic into its own function
  combine-diff: move show_log_first logic/action out of paths scanning
</content>
</entry>
<entry>
<title>mingw: activate alloca</title>
<updated>2014-04-09T17:08:35Z</updated>
<author>
<name>Kirill Smelkov</name>
<email>kirr@mns.spb.ru</email>
</author>
<published>2014-04-09T12:48:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=22f4c27e68f448d5fce316a73ea3f7bab6aa1268'/>
<id>urn:sha1:22f4c27e68f448d5fce316a73ea3f7bab6aa1268</id>
<content type='text'>
Both MSVC and MINGW have alloca(3) definitions in malloc.h, so by moving
win32-compat alloca.h from compat/vcbuild/include/ to compat/win32/ ,
which is included by both MSVC and MINGW CFLAGS, we can make alloca()
work on both those Windows environments.

In MINGW, malloc.h has explicit check for GNUC and if it is so, defines
alloca to __builtin_alloca, so it looks like we don't need to add any
code to here-shipped alloca.h to get optimum performance.

Compile-tested on Windows in MSysGit.

Signed-off-by: Kirill Smelkov &lt;kirr@mns.spb.ru&gt;
Acked-by: Erik Faye-Lund &lt;kusmabite@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MSVC: allow linking with the cURL library</title>
<updated>2014-03-27T19:05:14Z</updated>
<author>
<name>Marat Radchenko</name>
<email>marat@slonopotamus.org</email>
</author>
<published>2014-03-27T07:34:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=da8daa367b7dfe4337252810f6be0c0c31aa93c2'/>
<id>urn:sha1:da8daa367b7dfe4337252810f6be0c0c31aa93c2</id>
<content type='text'>
Teach the clink.pl script that -lcurl is a request to link with the
cURL library, and drop NO_CURL from config.mak.uname for the MSVC
platform.

Signed-off-by: Marat Radchenko &lt;marat@slonopotamus.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mark Windows build scripts executable</title>
<updated>2013-11-25T23:01:22Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2013-11-25T20:52:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bc380fca60080beb26f3e47ae7e5881abd5fc3f9'/>
<id>urn:sha1:bc380fca60080beb26f3e47ae7e5881abd5fc3f9</id>
<content type='text'>
On Windows the convention is to rely on filename extensions to decide
whether a file is executable so Windows users are probably not relying
on the executable bit of these scripts, but on other platforms it can
be useful documentation.

Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>msvc: Fix build by adding missing symbol defines</title>
<updated>2013-02-25T20:40:03Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsay1.demon.co.uk</email>
</author>
<published>2013-01-31T18:31:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=93e38ed0c5a632d7b785357a309ac83e4df066fa'/>
<id>urn:sha1:93e38ed0c5a632d7b785357a309ac83e4df066fa</id>
<content type='text'>
In particular, remote-testsvn.c fails to compile with two
undeclared identifier errors relating to the 'UINT32_MAX'
and 'STDIN_FILENO' symbols.

In order to fix the compilation errors, we add appropriate
definitions for the UINT32_MAX and STDIN_FILENO constants
to an msvc compat header file.

Signed-off-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Tested-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>msvc: Fix compilation errors caused by poll.h emulation</title>
<updated>2013-02-25T20:39:56Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsay1.demon.co.uk</email>
</author>
<published>2013-01-31T18:28:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41f2999180f5a58f2a4214d896359c1587c9024f'/>
<id>urn:sha1:41f2999180f5a58f2a4214d896359c1587c9024f</id>
<content type='text'>
Commit 0f77dea9 ("mingw: move poll out of sys-folder", 24-10-2011), along
with other commits in the 'ef/mingw-upload-archive' branch (see commit
7406aa20), effectively reintroduced the same problem addressed by commit
56fb3ddc ("msvc: Fix compilation errors in compat/win32/sys/poll.c",
04-12-2010).

In order to fix the compilation errors, we use the same solution adopted
in that earlier commit. In particular, we set _WIN32_WINNT to 0x0502
(which would target Windows Server 2003) prior to including the winsock2.h
header file.

Also, we delete the compat/vcbuild/include/sys/poll.h header file, since
it is now redundant and it's presence may cause some confusion.

Signed-off-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Tested-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MSVC: Remove unneeded header stubs</title>
<updated>2011-11-01T03:06:06Z</updated>
<author>
<name>Vincent van Ravesteijn</name>
<email>vfr@lyx.org</email>
</author>
<published>2011-10-31T19:12:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=439fbb807259ad52f1af86ca5e5c98b5f189a246'/>
<id>urn:sha1:439fbb807259ad52f1af86ca5e5c98b5f189a246</id>
<content type='text'>
These headers are no longer needed since they are no longer
unnecessarily included in git-compat-util.h.

Signed-off-by: Vincent van Ravesteijn &lt;vfr@lyx.org&gt;
Acked-by: Erik Faye-Lund &lt;kusmabite@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rj/msvc-fix'</title>
<updated>2010-12-16T20:55:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-12-16T20:55:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b5c6aac01baf9164e08915b348490710e83119f9'/>
<id>urn:sha1:b5c6aac01baf9164e08915b348490710e83119f9</id>
<content type='text'>
* rj/msvc-fix:
  msvc: Fix macro redefinition warnings
  msvc: Fix build by adding missing INTMAX_MAX define
  msvc: git-daemon.exe: Fix linker "unresolved externals" error
  msvc: Fix compilation errors in compat/win32/sys/poll.c
</content>
</entry>
<entry>
<title>msvc: Fix build by adding missing INTMAX_MAX define</title>
<updated>2010-12-10T00:00:30Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsay1.demon.co.uk</email>
</author>
<published>2010-12-04T18:57:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1a3b5a3e5cfc00ca36bdbc07b3ffebcdfc9dd989'/>
<id>urn:sha1:1a3b5a3e5cfc00ca36bdbc07b3ffebcdfc9dd989</id>
<content type='text'>
Commit c03c831 (do not depend on signed integer overflow,
05-10-2010) provokes an msvc build failure. The cause of the
failure is a missing definition of the INTMAX_MAX constant,
used in the new maximum_signed_value_of_type(a) macro, which
would normally be defined in the C99 &lt;stdint.h&gt; header file.

In order the fix the compilation error, we add an appropriate
definition of the INTMAX_MAX constant, along with INTMAX_MIN
and UINTMAX_MAX, to an msvc compat header file.

Signed-off-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Acked-by: Erik Faye-Lund &lt;kusmabite@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>win32: use our own dirent.h</title>
<updated>2010-11-24T00:06:50Z</updated>
<author>
<name>Erik Faye-Lund</name>
<email>kusmabite@gmail.com</email>
</author>
<published>2010-11-23T18:38:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d1b6e6e015501272c7491b3a4adf3cd3904edefa'/>
<id>urn:sha1:d1b6e6e015501272c7491b3a4adf3cd3904edefa</id>
<content type='text'>
The mingw-runtime implemenation of opendir, readdir and closedir
sets errno to 0 on success, something that POSIX explicitly
forbids. 3ba7a06 ("A loose object is not corrupt if it cannot be
read due to EMFILE") introduce a dependency on this behaviour,
leading to a broken "git clone" on Windows.

compat/mingw.c contains an implementation of readdir, and
compat/msvc.c contains implementations of opendir and closedir.

Move these to compat/win32/dirent.[ch], and change to our own DIR
structure at the same time.

This provides a generic Win32-implementation of opendir, readdir
and closedir which works on both MinGW and MSVC and does not reset
errno, and as a result git clone is working again on Windows.

Signed-off-by: Erik Faye-Lund &lt;kusmabite@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
