Created
May 9, 2012 09:21
-
-
Save benwoodward/2643265 to your computer and use it in GitHub Desktop.
Working setup for p4merge with git 1.7 upwards.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[merge] | |
tool = p4merge | |
keepBackup = false | |
[mergetool "p4merge"] | |
cmd = p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED" | |
keepTemporaries = false | |
trustExitCode = false | |
keepBackup = false | |
[diff] | |
external = p4diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ $# -eq 7 ] && /usr/bin/p4merge "$2" "$PWD/$5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/Applications/p4merge.app/Contents/MacOS/p4merge $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
p4diff and p4merge scripts go in /usr/local/bin, don't forget to
chmod 744
them.