]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - bin/git-ignore
bin/ack-wrapper: Handle STDIN being a pipe
[dotfiles.git] / bin / git-ignore
1 #!/bin/sh
2 # Usage: git-ignore <file1>,<file2>,...
3 # Add files to the current Git repo's exclude list
4
5 for pattern in "$@"
6 do
7 echo "$pattern" | tee -a .git/info/exclude
8 done