The version of msysGit that ships with GitHub for Windows
Перейти к файлу
Johannes Schindelin cb9836b8a5 Mark scripts and binaries in /bin/ as executable
This helps Cygwin and reusing msysGit scripts on Linux.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2012-06-26 10:08:34 -05:00
bin Mark scripts and binaries in /bin/ as executable 2012-06-26 10:08:34 -05:00
cmd Default the TERM environment variable suitable for use with less. 2012-04-11 19:34:57 +01:00
doc Updated to Git v1.7.11 2012-06-20 20:38:20 +01:00
etc Revert "Add an up-to-date test for msys-1.0.dll" 2012-06-20 20:38:16 +01:00
git@47a8d138da Updated to Git v1.7.11 2012-06-20 20:38:20 +01:00
include MSYS: Add flex-2.5.35-1-msys-1.0.11-bin.tar.lzma 2010-03-25 13:03:26 +01:00
lib Added CGI.pm (3.15) to the default perl install 2012-05-29 17:02:19 -05:00
libexec Switch to new 'libexec/git-core' directory layout 2008-07-26 12:02:24 +02:00
mingw Install hexdump-1.7.tar.gz 2012-06-09 23:55:22 +01:00
share Update the release notes (preliminary) 2012-06-25 16:09:12 -05:00
src Updated to Git v1.7.11 2012-06-20 20:38:20 +01:00
ssl Added MSys' openssl. 2008-02-20 13:42:58 +00:00
.gitattributes .gitattributes: make sure /etc/termcap has unix line-endings 2009-03-22 14:40:59 +01:00
.gitignore Ignore the SVN perl module which is installed since 1fd8f97 2012-06-20 10:48:21 +01:00
.gitmodules Point all submodules to github.com now git-cheetah is there as well. 2012-02-01 08:12:05 +00:00
README.md Spelling correction. 2012-04-13 16:54:43 -05:00
THIS_IS_MSYSGIT Add file THIS_IS_MSYSGIT to indicate an msysgit environment 2009-05-24 08:13:21 +02:00
TODO Updated TODO 2008-02-20 13:43:29 +00:00
git-cmd.bat Avoid quoting environment variable values. 2010-09-13 10:37:59 +01:00
msys.bat Make msys.bat work with WINE 2010-01-05 17:36:41 +01:00
wine-start.sh wine-start: avoid going through msys.bat 2011-09-09 15:56:54 -05:00

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.