From e8afe013cf1f17ced2940ad3bf2b7d50e04f4020 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Sat, 3 Jan 2015 16:52:04 -0600 Subject: [PATCH] add git alias to show all deleted files --- git/gitconfig.symlink | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git/gitconfig.symlink b/git/gitconfig.symlink index 9e0888c..13dc14d 100644 --- a/git/gitconfig.symlink +++ b/git/gitconfig.symlink @@ -28,6 +28,9 @@ # order files by number of commits, ascending churn = "!f() { git log --all -M -C --name-only --format='format:' \"$@\" | sort | grep -v '^$' | uniq -c | sort | awk 'BEGIN {print \"count\tfile\"} {print $1 \"\t\" $2}' | sort -g; }; f" + # show all deleted files in the repo + deleted = "!git log --diff-filter=D --summary | grep delete" + # current branch cbr = rev-parse --abbrev-ref HEAD