diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-04-25 13:51:24 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-04-25 13:51:24 +0200 |
commit | 912181cc393769ecec1e17336d4476b1ebe142e3 (patch) | |
tree | 75cc7cf4ecccac541bc0a4a49ce94a966e91a601 | |
parent | a977663d37f5b613221bd587c2821b7fdba8ac90 (diff) |
Try out a simple patch command
-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 +} |