Exclude changed but not staged files from nocommit check
This commit is contained in:
parent
38d0de39c7
commit
287ede88a8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue