chiark / gitweb /
fd-commit: don't break when non-metadata files show up in git status
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 16 Aug 2014 15:51:32 +0000 (17:51 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 16 Aug 2014 15:51:32 +0000 (17:51 +0200)
fd-commit

index 50e2b82670a4177b70aa10a1bc98434a85dde173..545553458cc25e5ff1ccbbeed34b730c6d361d33 100755 (executable)
--- a/fd-commit
+++ b/fd-commit
@@ -34,6 +34,7 @@ while read line; do
        case "$line" in
                *'??'*'metadata/'*'.txt') new=true ;;
                *'M'*'metadata/'*'.txt') new=false ;;
+               *) continue ;;
        esac
 
        file=${line##* }