rc/tools/git: add basic completion for git-grep

This commit is contained in:
Willow Barraco 2023-09-12 11:32:04 +02:00
parent 01fd6552af
commit cfd7d8e361
No known key found for this signature in database
GPG Key ID: EABA44759877E02A

View File

@ -74,7 +74,7 @@ define-command -params 1.. \
case "$1" in
commit) printf -- "--amend\n--no-edit\n--all\n--reset-author\n--fixup\n--squash\n"; git ls-files -m ;;
add) git ls-files -dmo --exclude-standard ;;
rm) git ls-files -c ;;
rm|grep) git ls-files -c ;;
esac
fi
} \