-
-
Save patrickdevivo/f5ebbe0f0de0be2b8012427ab2736608 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- average time (in days) since a line of code was last modified | |
-- broken out by file path | |
SELECT | |
path, | |
AVG(julianday(datetime('now')) - julianday(author_when)) AS avg_age | |
FROM files, blame('', '', path) | |
JOIN commits ON hash = commit_hash | |
GROUP BY path | |
ORDER BY avg_age |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment