From 16489b747c4a06b25ad1c0de95dc4c1263489ffd Mon Sep 17 00:00:00 2001 From: James Skemp Date: Thu, 17 Oct 2019 16:08:22 +0000 Subject: [PATCH] Update logging with PowerShell last file date script --- logging.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/logging.md b/logging.md index 90ea5d1..a216a81 100644 --- a/logging.md +++ b/logging.md @@ -73,4 +73,7 @@ git shortlog -s -n # View mostly commonly modified files, based upon commits. git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -10 + +# View all files in Git with the date the file was last touched in Git. PowerShell. +git ls-tree -r --name-only HEAD | ForEach-Object { "$(git log -1 --format="%ai" -- "$_")`t$_" } ```