diff options
| author | listout <listout@protonmail.com> | 2021-09-27 09:51:37 +0000 |
|---|---|---|
| committer | listout <listout@protonmail.com> | 2021-09-27 09:51:37 +0000 |
| commit | 1180a459419f1a6a4590631b32ec849c87c2f874 (patch) | |
| tree | f74536cf0971b7beff53abc6aab5c711e5ed74b5 /.gitconfig | |
| parent | 1347700ce789bcf5f70b928a4e7e60566bb15968 (diff) | |
| download | dots-1180a459419f1a6a4590631b32ec849c87c2f874.tar.gz | |
git stat alias
Diffstat (limited to '')
| -rw-r--r-- | .gitconfig | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -13,3 +13,11 @@ [user] email = listout@protonmail.com name = listout +[alias] + # list files which have changed since REVIEW_BASE + # (REVIEW_BASE defaults to 'master' in my zshrc) + files = !git diff --name-only $(git merge-base HEAD \"$REVIEW_BASE\") + + # Same as above, but with a diff stat instead of just names + # (better for interactive use) + stat = !git diff --stat $(git merge-base HEAD \"$REVIEW_BASE\") |
