[PATCH] D41145: git-clang-format: refactor to support upcoming --staged flag

Manuel Klimek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 13 01:02:05 PST 2017

klimek accepted this revision.
klimek added a comment.
This revision is now accepted and ready to land.


Comment at: google3/third_party/llvm/llvm/tools/clang/tools/clang-format/git-clang-format:252
+  assert len(commits) != 0
+  if len(commits) >= 2:
+    return Revision(commits[0]), Revision(commits[1]), files
Don't we want to die if len(commits) > 2?


More information about the cfe-commits mailing list