News for hackers. Stuff that matters.
Re:Find the oldest line in your repo by lutherqueen on Thursday January 30, 2025 @03:49PM (#42882030)
Similar oneliner to paste on MacOS terminal and get the eldest line for each file extension:

for ext in $(git ls-files | grep -vE 'node_modules|\.git' | awk -F. '{if (NF>1) print $NF}' | sort -u); do echo -e "\n.$ext:"; git ls-files | grep "\.$ext$" | xargs -I {} git blame -w {} 2>/dev/null | LC_ALL=C sort -t'(' -k2 | head -n1; done

There are no comments on this comment yet.