bring back git ls-files|grep $1 as a function, and add completion

This commit is contained in:
Yachi Lo 2013-09-24 15:25:03 +08:00 committed by ncanceill
commit b167029a28

View file

@ -248,6 +248,9 @@ alias gignore='git update-index --assume-unchanged'
alias gunignore='git update-index --no-assume-unchanged'
# List temporarily ignored files
alias gignored='git ls-files -v | grep "^[[:lower:]]"'
# Grep list of files in the index
function gfg() { git ls-files | grep $@ }
compdef gfg=grep
# Submodules
alias gf='git fetch'
compdef _git gf=git-fetch