anonymous / p4merge
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

p4merge script for Windows; to be placed in C:\Program Files(x86)\Git\bin (MSYS Git)

View p4merge
1 2 3 4 5 6 7
#!/bin/bash
 
NULL=$TMP/$$.NULL
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.