File: git-ignore

package info (click to toggle)
git-extras 1.7.0-1.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 696 kB
  • sloc: sh: 381; makefile: 52
file content (10 lines) | stat: -rwxr-xr-x 193 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

if test $# -eq 0; then
  test -f .gitignore && cat .gitignore
else
  for pattern in $@; do
    echo "... adding '$pattern' to .gitignore"
    echo $pattern >> .gitignore
  done
fi