diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-03-08 08:58:54 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-03-08 08:58:54 +0100 |
commit | 61e464e037a7436a2ac050fac8258094ba095514 (patch) | |
tree | 744b83a54f5cfb2c35c71a9b08cc304b6e06cd50 /lib/subcommands | |
parent | e4a5cb6416a8908a65e274cd00f7ea04f5094d77 (diff) |
Add diff subcommand
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 } |