Clone this wiki locally
Welcome to the git_osx_installer wiki!
Why run symlink_git_hardlinks.rb?
I understand that it converts hardlinks to symlinks, but why?
Also, instead of working by comparing file sizes, wouldn’t it be better if it compared inode numbers in case (although unlikely) another file with the same size is encountered?
It seems like the installer copies git-completion.bash, but does it ever include it in .bashrc as instructed in the comments?
Why are /etc/paths.d/git and /etc/manpaths.d/git needed? /usr/local/bin/ is already in $PATH and that’s where the git binary is.
Also, why does the line in etc/manpaths.d/git read: /usr/local/git/share/man when the man pages are actually installed in /usr/local/share/man?
Anyhow, if these files are needed, it looks like adding the following lines to build.sh would allow you to rm -rf etc/ and get rid of the 2 lines that cp those files:
sudo /bin/sh -c ‘echo /usr/local/git/bin > /private/etc/paths.d/git’
sudo /bin/sh -c ‘echo /usr/local/git/share/man > /private/etc/manpaths.d/git’
That would clean up the source code a bit.