diff options
Diffstat (limited to 'lib/subcommands')
-rw-r--r-- | lib/subcommands/patch.bash | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/subcommands/patch.bash b/lib/subcommands/patch.bash new file mode 100644 index 0000000..72350ef --- /dev/null +++ b/lib/subcommands/patch.bash @@ -0,0 +1,15 @@ +#!/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 add . \ + && git diff --cached \ + && git reset \ + && git restore . \ + && git clean -fd +} |