Files
codeql/python/ql/src/Metrics/External/CommitSourceLinks.ql
2020-03-30 11:59:10 +02:00

14 lines
253 B
Plaintext

/**
* @name Source links of commits
* @kind source-link
* @id py/commit-source-links
* @metricType commit
*/
import python
import external.VCS
from Commit c, File f
where f.fromSource() and f = c.getAnAffectedFile()
select c.getRevisionName(), f