Created
March 26, 2015 15:12
-
-
Save boris317/28ca0ce271118bad51bb to your computer and use it in GitHub Desktop.
P4 get the diff of a change list
This file contains hidden or 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
# p4 diff by changelist | |
function p4d { | |
if [ "$1" == "" ] | |
then | |
echo "usage: p4d CL"; | |
return 1; | |
fi | |
p4 opened -c $1 | sed -e 's/#.*//' | p4 -x - diff -du | less | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment