]> git.phdru.name Git - git-scripts.git/commitdiff
Feat(ls-assumed): Recognize files with skip-worktree bit
authorOleg Broytman <phd@phdru.name>
Fri, 9 Mar 2018 22:07:28 +0000 (01:07 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 9 Mar 2018 22:07:28 +0000 (01:07 +0300)
Recognize files with `git update-index --skip-worktree`
in addition to `--assume-unchanged`.

ls-assumed

index 2ca55c93ff8b41510178d5a411e97d77ae35aaef..bfbfdc35cd9ff066fa73fb0adfcfaf05ea4fd1e3 100755 (executable)
@@ -2,4 +2,4 @@
 
 exec "`dirname \"$0\"`"/do-all \
    'test "$g" = "$d/.git" || continue; cd "$d" &&' \
-   'test -n "`git ls-files -v | grep ^h`" && echo "$d"'
+   'test -n "`git ls-files -v | grep ^[a-z]`" && echo "$d"'