Editing
Git Cookbook
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== List all the files in a single commit === One way (preferred): <syntaxhighlight lang="bash"> $ git diff-tree --no-commit-id --name-only -r bd61ad98 index.html javascript/application.js javascript/ie6.js </syntaxhighlight> Another way: <syntaxhighlight lang="bash"> $ git show --pretty="format:" --name-only bd61ad98 index.html javascript/application.js javascript/ie6.js </syntaxhighlight> The `--no-commit-id` suppresses the commit ID output. The `--pretty` argument specifies an empty format string to avoid the cruft at the beginning. The `--name-only` argument shows only the file names that were affected (Thanks Hank). The `-r` argument is to recurse into sub-trees
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information