Skip to content

Instantly share code, notes, and snippets.

@boris317
Created March 26, 2015 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boris317/28ca0ce271118bad51bb to your computer and use it in GitHub Desktop.
Save boris317/28ca0ce271118bad51bb to your computer and use it in GitHub Desktop.
P4 get the diff of a change list
# 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