Skip to content
Create a gist now

Instantly share code, notes, and snippets.

anonymous /p4merge

p4merge script for Windows; to be placed in C:\Program Files(x86)\Git\bin (MSYS Git)
for arg; do [[ $arg = /dev/null ]] && arg=$NULL && echo "" >"$arg"; args+=("$arg"); done;
/c/Program\ Files/Perforce/p4merge "${args[@]}"
[[ -f $NULL ]] && rm $NULL

The echo "" >"$arg" adds an unnecessary (and annoying) empty line to the temporary file. I use touch "$arg" instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.