Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.