Mercurial > dotfiles
changeset 142:daceba28ace4
hgignore: everyone stand back! I know regular expressions!
This fixes ignores so that certain subdirectories will show me untracked files.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Thu, 17 Sep 2009 10:26:25 -0500 |
parents | c9f70cf1d4c6 |
children | 35eef880a5ac |
files | .hgignore |
diffstat | 1 files changed, 30 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgignore +++ b/.hgignore @@ -1,20 +1,30 @@ -syntax:glob -hgwebdir.conf -.* -*.pid -*.pyc -Desktop -Documents -Downloads -Dropbox -Library -Misc. Stuff -Movies -Music -Pictures -Programming -Public -Sites -durin42_html -public_html -www +syntax:re + +# complex regex to ignore all but what I want from dotfiles +^\.(?!bashrc$|best_unicode|elisp|emacs$|gitconfig$|hg|inputrc$|ipython|irbrc$|pdbrc\.py$|python|screenrc$|shell\.d|vim|zfun|zsh) + +# above RE fails to exclude viminfo +\.viminfo +# above RE fails to exclude history or machine-specific files +^\..*(?=history|machine).* + +# No pid files +.*\.pid$ + +#one-off file/directory exclusions +hgwebdir\.conf +^Desktop +^Documents +^Downloads +^Dropbox +^Library +^Misc. Stuff +^Movies +^Music +^Pictures +^Programming +^Public +^Sites +^durin42_html +^public_html +^www