aboutsummaryrefslogtreecommitdiff
path: root/lib/subcommands/diff.bash
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-03-08 08:58:54 +0100
committerPatrick Spek <p.spek@tyil.nl>2023-03-08 08:58:54 +0100
commit61e464e037a7436a2ac050fac8258094ba095514 (patch)
tree744b83a54f5cfb2c35c71a9b08cc304b6e06cd50 /lib/subcommands/diff.bash
parente4a5cb6416a8908a65e274cd00f7ea04f5094d77 (diff)
Add diff subcommand
Diffstat (limited to 'lib/subcommands/diff.bash')
-rw-r--r--lib/subcommands/diff.bash11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/subcommands/diff.bash b/lib/subcommands/diff.bash
new file mode 100644
index 0000000..1cb8c71
--- /dev/null
+++ b/lib/subcommands/diff.bash
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+# SPDX-FileCopyrightText: 2022 Patrick Spek <p.spek@tyil.nl>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+subcommand()
+{
+ chgdir "$BASHTARD_ETCDIR"
+ git -C "$BASHTARD_ETCDIR" diff
+}