aboutsummaryrefslogtreecommitdiff
path: root/lib/subcommands/patch.bash
blob: 72350ef9f92e2aa4bebd7c7cf493080bc5b022a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}