Update presubmit with command to format, commit and upload
Change-Id: I38eaa6e1b2f3b907dc6d8280d4636013b8903d84
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index a872ae8..faa8808 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -37,10 +37,14 @@
git diff -U0 $(git cl upstream) | %s -p1 -i
+or fix formatting, commit and upload:
+
+ git diff -U0 $(git cl upstream) | %s -p1 -i && git commit -a --amend --no-edit && git cl upload
+
or bypass the checks with:
- cl upload --bypass-hooks
- """ % FMT_CMD))
+ git cl upload --bypass-hooks
+ """ % (FMT_CMD, FMT_CMD)))
return results
def CheckDeterministicDebuggingChanged(input_api, output_api, branch):