Created
January 9, 2012 11:40
-
-
Save ponko2/1582601 to your computer and use it in GitHub Desktop.
.git ディレクトリを除外して find を行えるようにする関数 ref: http://qiita.com/items/1615
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function git-find() { | |
| find $1 \( -type d -name '.git' -prune \) -or \( $*[2,-1] -print \) | |
| } | |
| function git-find0() { | |
| find $1 \( -type d -name '.git' -prune \) -or \( $*[2,-1] -print0 \) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment