aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarstrom <john@ankarstrom.se>2021-07-02 22:09:54 +0200
committerJohn Ankarstrom <john@ankarstrom.se>2021-07-02 22:09:54 +0200
commitf26c6cf48e6c9e89909b4abb1dcf81cc2f39a86b (patch)
tree21a5554ac08993bafcb8c7f5eb3fc4e35a40b3be
parentabb5f84bd3936685d8515bd1b6f4c6622fda8a6e (diff)
downloadxutil-f26c6cf48e6c9e89909b4abb1dcf81cc2f39a86b.tar.gz
with-git: Add -s option
-rwxr-xr-xwith-git2
1 files changed, 2 insertions, 0 deletions
diff --git a/with-git b/with-git
index f313908..8952a82 100755
--- a/with-git
+++ b/with-git
@@ -1,3 +1,5 @@
#!/bin/sh
+[ x"$1" = x"-s" ] && { s=$1; shift; } || s=
"$@"
+[ -z "$s" ] || git status
exec repl "${GIT:-git}"