开发者

Find Last 10 authors for a certain file in Git

开发者 https://www.devze.com 2023-04-08 02:24 出处:网络
What is t开发者_Go百科he best (from performance point of view) way to find in Git the last 10 users who changed a certain file ?

What is t开发者_Go百科he best (from performance point of view) way to find in Git the last 10 users who changed a certain file ?

For example I want to know the last 10 committers (not the last 10 commits) of file foo.txt


I'd try something like this in *nix systems (w/ bash)

git log --format=%an foo.txt |awk ' !x[$0]++' |head -10
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号