Skip to content

Instantly share code, notes, and snippets.

@alpaca-tc
Created May 29, 2013 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpaca-tc/5670252 to your computer and use it in GitHub Desktop.
Save alpaca-tc/5670252 to your computer and use it in GitHub Desktop.
[alias]
assume = !"fun() { str=''; for arg in $@; do str=\"${str} $(find $arg -type f)\"; done; git update-index --assume-unchanged $str; }; fun"
no-assume = !"fun() { str=''; for arg in $@; do str=\"${str} $(find $arg -type f)\"; done; git update-index --no-assume-unchanged $str; }; fun"
assume-list = !"git ls-files -v | grep -e "^[a-z]""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment