Skip to content

Instantly share code, notes, and snippets.

@teopeurt
Last active May 10, 2017 11:26
Show Gist options
  • Save teopeurt/8b570a71fe5bcf939b706abaaa5b90a7 to your computer and use it in GitHub Desktop.
Save teopeurt/8b570a71fe5bcf939b706abaaa5b90a7 to your computer and use it in GitHub Desktop.
This depends on p4merge shell script - allows using p4merge as visual merge.
#!/bin/sh
# chmod a+x ~/bin/p4diff
# git config --global diff.external p4diff
[ $# -eq 7 ] && ~/bin/p4merge "$2" "$5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment