Skip to content

Commit

Permalink
gitconfig: Add dl difflast alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
yjyao committed Sep 25, 2021
1 parent a539ea7 commit cf83ccd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
d = diff
dc = !git d --cached
ds = !git d --stat
dl = "!f() { git diff ${1:-@}^..${1:-@} ;};f"

; Like listed by `git status` i.e., = 'fm' + 'fc' + 'fn'
files = "!bash -c 'sort -u <(git diff --name-only --cached) <(git ls-files --others --exclude-standard --modified)'"
Expand Down

0 comments on commit cf83ccd

Please sign in to comment.