summaryrefslogtreecommitdiff
path: root/git/init.d/README
blob: 90aec677c9f4b95f77d68d85e3c1fac96cf1f0c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Executable files in this directory are run to initialise the working directory
for use by etckeeper. If the working directory is not already in version
control, that includes setting up the version control, but not actually
committing anything. If the working directory is in version control,
it includes applying stored metadata to the checked out files in the
working directory.

Please be careful to *never* overwrite existing files/directories
in the working directory (or use absolute care when doing so). If a file
you need to write already exists, check if its contents are sane, and 
if not, emit a warning on stderr.

If initialisation fails, exit nonzero and no later files will be run.