4 if [ "$VCS" = git ] || [ "$VCS" = hg ] || [ "$VCS" = bzr ]; then
5 # Make sure the file is not readable by others, since it can leak
6 # information about contents of non-readable directories in /etc.
9 # ensure the file exists so that it will list its own metadata
10 if [ ! -e .metadata ]; then
14 # metastore doesn't produce the same output file for the same metadata
15 # everytime, so avoid changing the file if nothing really changed.
16 if [ ! -z "$(metastore --compare)" ]; then
19 # stage the file as part of the current commit
20 if [ "$VCS" = git ]; then
23 # hg and bzr add not done, they will automatically
24 # include the file in the current commit