Skip to content

Commit 7beead4

Browse files
committed
Add List Filenames Without The Diffs as a git til.
1 parent 06a7d5c commit 7beead4

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
2929
- [Delete All Untracked Files](git/delete-all-untracked-files.md)
3030
- [Dry Runs in Git](git/dry-runs-in-git.md)
3131
- [Intent To Add](git/intent-to-add.md)
32+
- [List Filenames Without The Diffs](git/list-filenames-without-the-diffs.md)
3233
- [List Untracked Files](git/list-untracked-files.md)
3334
- [Single Key Presses in Interactive Mode](git/single-key-presses-in-interactive-mode.md)
3435
- [Staging Changes Within Vim](git/staging-changes-within-vim.md)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# List Filenames Without The Diffs
2+
3+
The `git show` command will list all changes for a given reference
4+
including the diffs. With diffs included, this can get rather verbose at
5+
times. If you just want to see the list of files involved (excluding the
6+
diffs), you can use the `--name-only` flag. For instance,
7+
8+
```
9+
$ git show HEAD --name-only
10+
commit c563bafb511bb984c4466763db7e8937e7c3a509
11+
Author: jbranchaud <jbranchaud@gmail.com>
12+
Date: Sat May 16 20:56:07 2015 -0500
13+
14+
This is my sweet commit message
15+
16+
app/models/user.rb
17+
README.md
18+
spec/factories/user.rb
19+
```

0 commit comments

Comments
 (0)