Can we inject git command output into another git command

My requirement is to get a list of folders that received some file changes after a certain date.

I tried and got commands from which I can get some details:

This command lists the commits that execute after this date ( 2016-05-26):

git log --date=short --after=2016-05-26 --pretty=format:"%h"

Conclusion:

5761f52
7c589b8
1ee709d

This command lists the name of the file that was changed in this commit ( 5761f52):

git show --pretty="format:" --name-only 5761f52

Conclusion:

Dummy/Dummy_file.java

Instead of checking after each commit, is there a way to get a list for a group of commits?

+4
source share
2 answers

Mureinik's answer seems good to me. But if you do not agree, you can use the loop on the bash command line

for commit in `git log --date=short --after=2016-05-26 --pretty=format:"%h"` 
do 
echo "====== Commit $commit is beeing analyzed ======";
git show --pretty="format:" --name-only $commit;
done
0
source

--name-only git diff. , , :

git diff --name-only master@{2016-05-26}
0

All Articles