aboutsummaryrefslogtreecommitdiff
path: root/lib/subcommands
diff options
context:
space:
mode:
Diffstat (limited to 'lib/subcommands')
-rw-r--r--lib/subcommands/diff.bash (renamed from lib/subcommands/patch.bash)6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/subcommands/patch.bash b/lib/subcommands/diff.bash
index 72350ef..1cb8c71 100644
--- a/lib/subcommands/patch.bash
+++ b/lib/subcommands/diff.bash
@@ -7,9 +7,5 @@
subcommand()
{
chgdir "$BASHTARD_ETCDIR"
- git add . \
- && git diff --cached \
- && git reset \
- && git restore . \
- && git clean -fd
+ git -C "$BASHTARD_ETCDIR" diff
}