lodato added a comment. I think the simplest solution to those problems is to require `--diff`. An alternative is to write the changes directly to the index without touching the working directory, but that would require some flag because the behavior is unintuitive, and the implementation would be complicated enough to warrant its own patch.
I reimplemented your patch in https://reviews.llvm.org/D41147 based on a significant refactoring, which I hope makes the code more clear. Repository: rL LLVM https://reviews.llvm.org/D15465 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits