[PATCH] D15465: [git-clang-format]: New option to perform formatting against staged changes only

Mark Lodato via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 9 09:05:18 PST 2016


lodato added inline comments.

================
Comment at: git-clang-format:124
@@ -121,3 +123,3 @@
   del opts.quiet
 
   commit, files = interpret_args(opts.args, dash_dash, opts.commit)
----------------
lodato wrote:
> This will work without `--diff` (otherwise it will try to apply changes in the index to the working directory, which doesn't make sense), so could you please add a check that `--staged` requires `--diff`?
Oops, will //not// work.


Repository:
  rL LLVM

http://reviews.llvm.org/D15465





More information about the cfe-commits mailing list