[PATCH] D41147: git-clang-format: Add new --staged option.

2017-12-13 Thread Mark Lodato via Phabricator via cfe-commits
lodato updated this revision to Diff 126793. lodato added a comment. Update after change to https://reviews.llvm.org/D41145 that fixed `len(commits) > 2` case. https://reviews.llvm.org/D41147 Files: google3/third_party/llvm/llvm/tools/clang/tools/clang-format/git-clang-format Index:

[PATCH] D41147: git-clang-format: Add new --staged option.

2017-12-13 Thread Manuel Klimek via Phabricator via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg https://reviews.llvm.org/D41147 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D41147: git-clang-format: Add new --staged option.

2017-12-12 Thread Mark Lodato via Phabricator via cfe-commits
lodato created this revision. lodato added reviewers: djasper, klimek, Alexander-Shukaev. This new mode, which requires --diff, operates very similarly to the two mode, except that the stage is formatted instead of the second commit. The main intent of this feature is to use in pre-commit