[PATCH] D33944: git-clang-format: Add --cached option to format index

Kevin Locke via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 6 08:54:29 PDT 2017


kevinoid created this revision.
kevinoid added a project: clang-tools-extra.

Add --cached option to git-clang-format which behaves analogously to the use of --cached for other git subcommands, by causing the operation to work against the index state rather than the working directory state.

This can be particularly useful for hook scripts which need to check or change the formatting of the index state before commit.


Repository:
  rL LLVM

https://reviews.llvm.org/D33944

Files:
  tools/clang-format/git-clang-format

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33944.101573.patch
Type: text/x-patch
Size: 6109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170606/4907b021/attachment.bin>


More information about the cfe-commits mailing list