aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}"