Like `ls -1` but marks path modified by a specific author or a company
#!/bin/bash | |
#regex="@nina.no$" | |
regex="$1" | |
function check { | |
git log --format="%ae" "$1" | grep -q "$regex" | |
} | |
check '.' && echo " * ." || echo " ." | |
for path in * | |
do | |
check "$path" && echo -n " * " || echo -n " " | |
ls -1 --color=always | grep --color=never "$path" | sort -n | head -n1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment