Git log *.java files and committers -


how can list of java files in repo , original author , every committer file since.

my attempt below i'd 1 line each java file , list of committers after that.

git log --name-only --pretty=format:"the author of %h %ae on %ad" -- '*.java' 

i don't think you're far off don't think can obtained directly git, instead, list tracked files first, loop on each one.

for file in $(git ls-files | grep \.java$)     echo "looking @ $file";     git log --pretty=format:"the author of commit %h %ae on %ad" -- $file;     echo; done 

note: using git ls-files *.java list tracked java files in current directory , not java files in repo.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -