浏览代码

git: strip-html-comments filter

Fabian Peter Hammerle 9 年之前
父节点
当前提交
1836b3fe78
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      setup

+ 4 - 0
setup

@@ -23,3 +23,7 @@ git config --global alias.branches "branch --all"
 git config --global alias.diff-last "diff HEAD^ HEAD"
 git config --global alias.status-tracked "status --untracked-files=no"
 git config --global alias.tree "log --graph --abbrev-commit --decorate --format=format:'%C(red)%h%C(reset)%C(bold red)%d%C(reset) %C(dim green)(%ar)%C(reset) %C(bold black)%s%C(reset) %C(dim white)(%an)%C(reset)' --all"
+
+# filters
+git config --global filter.strip-html-comments.clean 'strip-html-comments'
+git config --global filter.strip-html-comments.smudge 'cat'