1 #!/usr/bin/env bash
3 # VonC CC BY-SA 4.0
4 # https://stackoverflow.com/a/3879077
5 # https://creativecommons.org/licenses/by-sa/4.0/
7 # Update the index
8 git update-index -q --ignore-submodules --refresh
11 # Disallow unstaged changes in the working tree
13 then
17 fi
19 # Disallow uncommitted changes in the index
21 then
25 fi
28 then
31 fi