summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-28 00:38:58 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-28 00:38:58 +0200
commitd929888cb2c88dceb07cfe320683b981731188a5 (patch)
tree9b6fa7c4b9f945f6cfbbf95bb69df4ff07b17e13 /bin
parent95de0bb17b1e2142170c287693be5e2ffc425666 (diff)
added sorting to gign and posix compliance
Diffstat (limited to 'bin')
-rwxr-xr-xbin/common/gign6
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