sarikaya
sarikaya

Reputation: 301

How to show only filenames by commiter with git log

Is it able to show only changed File of each Author with git log

Example Output:

user1
file1.txt
file3.txt
file2.txt

user2
file1.txt
file4.txt
fil6.txt

Upvotes: 2

Views: 208

Answers (1)

ElpieKay
ElpieKay

Reputation: 30858

git log --format=%an | sort -u | while read line; do echo $line;git log --author="$line" --pretty='/ %h' --name-only | grep -v ^/ | grep -v ^$ | sort -u;echo ""; done

Upvotes: 1

Related Questions