Skip to content

Commit 8f28c93

Browse files
committed
Added qshow alias in goodies
1 parent 225df18 commit 8f28c93

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,20 @@ Add this to your `.gitconfig`:
6969
generic = D !git qdiff %(commit)~1..%(commit)
7070
```
7171

72+
### alias
73+
74+
This alias is handy when you want to show a single commit in git-qdiff.
75+
Add this to your `.gitconfig`:
76+
77+
```ini
78+
[alias]
79+
qshow = "!git show $1 --quiet; git qdiff $1~1...$1"
80+
```
81+
82+
and use it like this:
83+
84+
$ git qshow 61376d9
85+
7286
*Note: Don't try this on the "unstaged changes" line in tig's log view*
7387

7488
License

0 commit comments

Comments
 (0)