git - How can I view changed files for each commit in the log? -
this question has answer here:
i want view list of files changed in each commit in git log
. another question asked how view changed files single commit, , got following response:
$ git diff-tree --no-commit-id --name-only -r bd61ad98 index.html javascript/application.js javascript/ie6.js
what want know how apply git log
. is, command should run following output?
commit 78b3ba12002f9cab5cbb57fac87d8c703702a196 author: wd40 <example@example.com> date: fri apr 14 09:59:57 2017 -0500 change more things about.html javascript/application.js javascript/ie6.js commit 0f98b1f7eda33a4e9cfaab09506aa8094044085f author: wd40 <example@example.com> date: fri apr 14 09:49:03 2017 -0500 change things index.html javascript/application.js javascript/ie6.js
additionally, if it's possible, i'd know how same thing, display added , deleted files.
i've looked @ git log --format
options, couldn't find resembling want. have feeling it's not possible git log, , may require stringing output multiple git diff-tree
s, i'm not sure how go either without scripting (which may way accomplish want, thought i'd go ahead , ask since last resort).
git-log
has many, many options displaying changes. they're found in docs common diff options, common because they're shared many commands can display commits, git-diff-tree
.
--name-only
want. there's also...
-p
display complete patch--stat
display files changes, , number of changes--name-status
show name , how changed (modified, deleted, ...)
and much, more!
so, example, git log --name-status
might show like:
commit 78b3ba12002f9cab5cbb57fac87d8c703702a196 author: wd40 <example@example.com> date: fri apr 14 09:59:57 2017 -0500 change more things about.html m javascript/application.js d javascript/ie6.js commit 0f98b1f7eda33a4e9cfaab09506aa8094044085f author: wd40 <example@example.com> date: fri apr 14 09:49:03 2017 -0500 change things index.html javascript/application.js javascript/ie6.js
where a
added, m
modified, , d
deleted.
Comments
Post a Comment