From ecd7f293bed96f17a83b1683fe9971d72d22cabc Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 21 Oct 2014 17:34:42 -0700 Subject: [PATCH] Add file-exists and shas; bump .emacs.d pointer. --- dotfiles/emacs.d | 2 +- dotfiles/gitconfig | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dotfiles/emacs.d b/dotfiles/emacs.d index 3a01d4be..281d63b5 160000 --- a/dotfiles/emacs.d +++ b/dotfiles/emacs.d @@ -1 +1 @@ -Subproject commit 3a01d4be1d0c953cd1c4f293e8d0b32b543a2131 +Subproject commit 281d63b51cfb26dbd816318b01f10bb81ed87cf1 diff --git a/dotfiles/gitconfig b/dotfiles/gitconfig index 9c2a028e..82e306ba 100644 --- a/dotfiles/gitconfig +++ b/dotfiles/gitconfig @@ -45,6 +45,8 @@ clean-branches = "!r() { git branch -r --merged ${1-origin/master} | xargs -n1 git branch -d; }; r" diff-excluding = "!f() { exclude=$1; shift; git diff $1 $2 --name-only | grep -v $exclude | xargs git diff "$@" --; }; f" aliases = "!f() { git config --get-regexp ^alias | cut -c 7-; }; f" + file-exists = "!f() { git ls-files $1 --error-unmatch > /dev/null 2> /dev/null; }; f" + shas = log HEAD --pretty=format:%H [core] # Use custom `.gitignore` and `.gitattributes`