summaryrefslogtreecommitdiffstats
path: root/nix-utils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nix-utils.sh')
-rw-r--r--nix-utils.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/nix-utils.sh b/nix-utils.sh
index 9e50b42..7995e12 100644
--- a/nix-utils.sh
+++ b/nix-utils.sh
@@ -55,3 +55,7 @@ continue_question() {
[[ "${answer}" =~ ^[Yy]$ ]] || return 1
}
+__git() {
+ DIR=$1; shift
+ explain git --git-dir="$DIR/.git" --work-tree="$DIR" $*
+}