DescriptionFix "git cl format" when newer clang-format version is installed.
Newer versions of clang-format-diff.py now require a -i flag to
explicitely apply edits, otherwise they just print a diff, which
make "git cl format" a no-op.
This patch fixes the issue by probing the script's help text to
see if the flag is needed. If it is, it is added automatically.
BUG=NONE
R=maruel@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=231020
Patch Set 1 #
Total comments: 2
Patch Set 2 : Simplify #Messages
Total messages: 6 (0 generated)
|