[PATCH] D36686: [clang-diff] Add option to compare files across git revisions

Johannes Altmanninger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 14 12:07:24 PDT 2017


johannes added a comment.

In https://reviews.llvm.org/D36686#840827, @arphaman wrote:

> It might be useful to have both source and destination in a different revision. Maybe something like `-src-git-rev` and `-dst-git-rev`?


Then I'd rather have a revision range such as `-git-revs <commit>..<commit>`
and if there is only one specified, then <commit>..HEAD is implied
maybe a different name for the argument

The whole thing is a bit of a hack - if the HEAD is dirty then the checkout fails and the program exits.

I want to change it so it does not interfere with the state of the repository. I can checkout the revisions in a temporary repository and then patch the paths in the compilation database.


https://reviews.llvm.org/D36686





More information about the cfe-commits mailing list