fix for long command line on git-add-interactive

See https://github.com/msysgit/git/issues/182 for more details
This implementation is not checked. It was created from @PhilipDavis
proposal https://gist.github.com/PhilipDavis/a7e8843dad39493a698c