Skip to content

Instantly share code, notes, and snippets.

@chrisledet
Last active March 29, 2018 19:07
Show Gist options
  • Save chrisledet/3da5fee8ba41ba67733acc4465a976e7 to your computer and use it in GitHub Desktop.
Save chrisledet/3da5fee8ba41ba67733acc4465a976e7 to your computer and use it in GitHub Desktop.
p4 color diffs
#!/bin/bash
# pdiff: colorized diffs for linux p4 workspaces
# usage: pdiff <CL#>
p4 opened -c $1 | sed -e 's/#.*//' | p4 -x - diff -du | colordiff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment