Skip to content

Commit 7aec921

Browse files
TimvdLippecushon
authored andcommitted
Expand google-java-format-diff
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=235723967
1 parent df76e0c commit 7aec921

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/google-java-format-diff.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
git diff -U0 HEAD^ | google-java-format-diff.py -p1 -i
2121
svn diff --diff-cmd=diff -x-U0 | google-java-format-diff.py -i
2222
23+
For perforce users:
24+
25+
P4DIFF="git --no-pager diff --no-index" p4 diff | ./google-java-format-diff.py -i -p7
26+
2327
"""
2428

2529
import argparse

0 commit comments

Comments
 (0)