The version of msysGit that ships with GitHub for Windows
Перейти к файлу
Erik Faye-Lund 2e1502a81a Revert "perl: make File::Spec treat msys as Window"
This reverts commit eeaeecbbef.
2014-04-15 22:27:40 +02:00
bin Add a script to list the download statistics for Git for Windows 2014-04-15 14:16:11 -05:00
cmd fix typo 2014-04-14 14:43:08 -07:00
doc Commit submodules in preparation for 1.9.2 2014-04-11 14:36:37 -05:00
etc Delete oboslete etc/ssh_known_hosts2 2013-12-30 21:02:16 +01:00
git@d0859cc8e8 Commit submodules in preparation for 1.9.2 2014-04-11 14:36:37 -05:00
include
lib Revert "perl: make File::Spec treat msys as Window" 2014-04-15 22:27:40 +02:00
libexec
mingw Install zlib-1.2.8.tar.gz 2014-02-23 21:18:49 +00:00
share Installer: Fix a typo 2014-04-13 11:38:01 +02:00
src Commit submodules in preparation for 1.9.2 2014-04-11 14:36:37 -05:00
ssl
.gitattributes
.gitignore Add the .vagrant/ directory to the .gitignore file 2014-01-28 12:23:03 -06:00
.gitmodules
README.md Aargh. Forgot one more obsolete URL 2014-02-25 08:40:50 -06:00
THIS_IS_MSYSGIT
Vagrantfile Add a Vagrantfile 2014-01-28 12:00:55 -06:00
git-cmd.bat fix another typo 2014-04-14 14:43:45 -07:00
msys.bat msys: added setlocal to keep variables in subshell 2013-09-05 20:22:42 +01:00
wine-start.sh

README.md

Build environment for Git for Windows

This is the build environment -- also known as msysGit -- for Git for Windows.

The easiest way is to install it via the net installer. This installer will clone our two repositories, including all the necessary components to build Git for Windows, and perform an initial build.

The build environment

msysGit brings a few components that are required to build Git:

  • Bash, a Unix-type command-line shell. Quite a few components of Git itself are still shell scripts. Therefore, Bash is required to execute Git commands (see the output of cd /git && git ls-files \*.sh for a full list).
  • the GNU C Compiler. Since we try to rely only on free software (apart from the Operating System, of course), we think it makes more sense to rely on GCC than on Visual Studio express. Also, it makes the maintenance burden lighter, as upstream Git also targets mainly GCC.
  • GNU Make.
  • Perl. Still required for a couple of Git components (see the output of cd /git && git ls-files \*.perl), most notably git svn.
  • Tcl/Tk, a scripting language making it easy to implement cross-platform graphical user interfaces. We need this for gitk and git gui.
  • cURL, a library implementing HTTP and FTP transport.
  • many more libraries.
  • some Unix programs required by the shell scripts in Git.

The relationship between msysGit and Git for Windows

Git for Windows is the software package that installs a minimal environment to run Git on Windows. It comes with a Bash (a Unix-type shell), with a Perl interpreter and with the Git executable and its dependencies.

On the other hand, msysGit is the software package installing the build environment that can build Git for Windows. The easiest way is to install it via the net installer.

The difference between MSys and MinGW

The MinGW project's goal is to provide a way to compile native Windows binaries with no POSIX layer using the GNU C Compiler.

However, at least the Bash needs a POSIX layer (most notably due to the absence of the fork() call on Windows). Therefore, MSys (the minimal system) is thrown in, offering the minimal system necessary to offer Bash (and Perl) functionality on Windows.

Consequently, MSys ships with a POSIX layer (based on an old version of Cygwin) that is only used by the Bash and Perl, but not by anything compiled within that environment.

Further information

For more information and documentation, please have a look and enhance our Wiki.

For code contributions and discussions, please see our mailing list.