[all-commits] [llvm/llvm-project] bee61a: [clang-format] Add --staged/--cached option to git...
Erik Larsson via All-commits
all-commits at lists.llvm.org
Sat Oct 30 09:39:19 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bee61aa7b638726c3e0eec017fbd89d79a181434
https://github.com/llvm/llvm-project/commit/bee61aa7b638726c3e0eec017fbd89d79a181434
Author: Erik Larsson <karl.erik.larsson at gmail.com>
Date: 2021-10-30 (Sat, 30 Oct 2021)
Changed paths:
M clang/tools/clang-format/git-clang-format
Log Message:
-----------
[clang-format] Add --staged/--cached option to git-clang-format
When running git-clang-format in a pre-commit hook it's very useful to be able to tell git-clang-format to only look at the --staged/--cached files and not the working directory.
Note this patch is a rebase/fork from {D41147 } which is a fork of {D15465 }
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, lodato
Differential Revision: https://reviews.llvm.org/D90996
Co-authored-by: Mark Lodato <lodato at google.com>
More information about the All-commits
mailing list