[PATCH] D26287: clang-format: Use git-ls-tree to get file mode in diff mode

2016-11-03 Thread Mark Lodato via cfe-commits
lodato accepted this revision. lodato added a comment. This revision is now accepted and ready to land. Thanks for the fix! https://reviews.llvm.org/D26287 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D24319: clang-format: Add an option to git-clang-format to diff between to commits

2016-09-21 Thread Mark Lodato via cfe-commits
lodato accepted this revision. lodato added a reviewer: lodato. lodato added a comment. This revision is now accepted and ready to land. Nice feature. Thanks for the patch! https://reviews.llvm.org/D24319 ___ cfe-commits mailing list

Re: [PATCH] D24319: clang-format: Add an option to git-clang-format to diff between to commits

2016-09-21 Thread Mark Lodato via cfe-commits
lodato added a comment. Could you add a note to the commit description to say that there is a backwards incompatibility: if a filename matches a branch name or other commit-ish, then `git clang-format ` will no longer work as expected; use `git clang-format -- ` instead.

Re: [PATCH] D24319: clang-format: Add an option to git-clang-format to diff between to commits

2016-09-19 Thread Mark Lodato via cfe-commits
lodato added a comment. Sorry for the delay - I haven't had a chance to review. I'll be sure to review by tomorrow. Thanks for the updates! https://reviews.llvm.org/D24319 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D24319: clang-format: Add a flag to limit git-clang-format's diff to a single commit

2016-09-12 Thread Mark Lodato via cfe-commits
lodato added a subscriber: lodato. lodato added a comment. Hi lhchavez, This patch does not work as intended. If I understand correctly, you want to see if a given `` has any clang-format problems. However: 1. This patch only computes `changed_lines` from `` but then runs clang-format on the

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

2016-02-09 Thread Mark Lodato via cfe-commits
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

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

2016-02-09 Thread Mark Lodato via cfe-commits
lodato added a subscriber: lodato. lodato requested changes to this revision. lodato added a reviewer: lodato. lodato added a comment. This revision now requires changes to proceed. This does not work properly because it calls `clang-format` on the files in the working directory, even if