Hello:

On Fri, Apr 18, 2008 at 11:04 PM, cjl <[EMAIL PROTECTED]> wrote:
>  I have a batch file that changes some environment variables when
>  executed, and I need to add the appropriate directories the the PATH.
>  I noticed that in the cmd directory installed by msysGit there is a
>  batch file named 'git', designed to execute with and error code when
>  run.
>
>  It looks like I need to add both the 'bin' and 'cmd' directories to
>  the path, so I add 'bin' first, and I'm not having any problems, but I
>  can't quite figure out the purpose of this file, and was hoping
>  someone could point me in the right direction.

This is just my guess: When one runs the msysgit installer like
git-1.5.4preview20080413.exe, there is a choice between: "Run Git from
the Windows Command Prompt" (adding just "git" and "gitk" to your Path
env var), or "Run Git and included Unix tools from the Windows Command
Prompt" (adding all the commands (not recommended in scary red
letters)). The former corresponds to the "cmd" directory, while the
latter is the "bin". Since you are already creating your own batch
files, you probably only need to add the "bin", assume you set up the
process's envvars just like as shown in "cmd\git.cmd". So you probably
don't need "cmd".

>  Also, is there any way I could slim thing down? msysGit is approx.
>  100MB when extracted.

I don't know.

You probably want to look at how the msysgit installer is made.

>From looking at the installer source, I see it uses "CreateHardLink"
to hard link all git internal programs, for supposed space savings.
However I can't really confirm that it works, since my NTFS-based git
install directory also shows "100MB in use".

Best regards,
Clifford Caoile

Reply via email to