From d929888cb2c88dceb07cfe320683b981731188a5 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 28 Apr 2023 00:38:58 +0200 Subject: added sorting to gign and posix compliance --- bin/common/gign | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3