diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/common/gign | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/common/gign b/bin/common/gign index e82c0b8..ba6be30 100755 --- a/bin/common/gign +++ b/bin/common/gign @@ -1,2 +1,6 @@ #!/usr/bin/env sh -git status --porcelain=v1 | grep "^??" | cut -d' ' -f2- | sed -r 's/^["](.*)["]$/\1/' >> .gitignore +git status --porcelain=v1 | + grep "^??" | + cut -d' ' -f2- | + sed 's/^"\(.*\)"$/\1/' >> .gitignore +cat .gitignore | sort | tee .gitignore > /dev/null |