diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-01-03 21:12:05 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-01-03 21:12:05 -0500 |
commit | ef70e3d7e62671d0cadb2731e6965768f73ca290 (patch) | |
tree | e0470bd941f4d9f39068499265731e9e53818657 /init.d/50git-ignore | |
parent | 3021117f7b4e17041d96e4906fce90a1ccd0183e (diff) |
* Added configuration options for highlevel and lowlevel package managers
in etckeeper.conf.
* Only install apt hooks if apt is used.
* Only add backup conffile exclusion to gitignore if dpkg is used.
* Rename pre/post-apt.d to pre/post-install.d to allow the same directories
to be used for other package managers.
* Use the name of the highlevel package manager in commit messages.
Diffstat (limited to 'init.d/50git-ignore')
-rwxr-xr-x | init.d/50git-ignore | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/init.d/50git-ignore b/init.d/50git-ignore index f931592..de58ed5 100755 --- a/init.d/50git-ignore +++ b/init.d/50git-ignore @@ -1,11 +1,14 @@ #!/bin/sh set -e if [ ! -e .gitignore ]; then - cat >.gitignore <<EOF -*~ - + if [ "$LOWLEVEL_PACKAGE_MANAGER" = dpkg ]; then + cat >.gitignore <<EOF # new and old versions of conffiles, stored by dpkg *.dpkg-* +EOF + fi + cat >>.gitignore <<EOF +*~ # mount(8) records system state here, no need to keep these in git blkid.tab |