Open dangler opened 9 years ago
Thanks! We definitely haven't done as much testing under Windows. This gives me something to get started on for that.
Here's the workaround I'm using for MinGW / MSYS (Git Bash). Note that it doesn't work with Cmder's bash, it looks like it just infinitely forks bash processes.
function git() {
case $1 in
commit|blame|log|rebase|merge)
eval "$SCMPUFF_GIT_CMD" "$(cygpath -u -- $(scmpuff expand -- "$@") | tr '\n' ' ')";;
checkout|diff|rm|reset)
eval "$SCMPUFF_GIT_CMD" "$(cygpath -u -- $(scmpuff expand --relative -- "$@") | tr '\n' ' ')";;
add)
eval "$SCMPUFF_GIT_CMD" "$(cygpath -u -- $(scmpuff expand -- "$@") | tr '\n' ' ')"
scmpuff_status;;
*)
"$SCMPUFF_GIT_CMD" "$@";;
esac
}
This needs to be sourced after the initial eval "$(scmpuff init -s)"
The workaround fails when using git commit -m "some message with spaces"
.
Installed with cmder running as git bash.