Exclude changed but not staged files from nocommit check

This commit is contained in:
Talia 2024-10-16 16:31:16 +02:00
parent 38d0de39c7
commit 287ede88a8

View file

@ -25,7 +25,7 @@ check() {
}
get_marks() {
git status --porcelain | cut --bytes 4- | while read file
git status --porcelain | sed "/^[ ?]/d" | cut --bytes 4- | while read file
do
if [ -e "$temp/index/$file" ]
then