Updated the worthwhile functions stuff KEK
Signed-off-by: Andrei Jiroh Eugenio Halili <andreijiroh@madebythepins.tk>
This commit is contained in:
parent
564318b1ca
commit
fcf64bd60e
|
@ -32,7 +32,7 @@ refresh-aliases() {
|
|||
|
||||
# https://commentedcode.org/blog/2020/09/21/changing-default-branch-of-git-init/
|
||||
git() {
|
||||
# check command for some automation KEK
|
||||
# check command for some automation KEK, especially i want to do DCO by default
|
||||
if [[ "$1" == "init" && "$@" != *"--help"* ]]; then
|
||||
[[ $DEBUG != "" ]] && echo "args: $@" && sleep 3
|
||||
if command git "$@"; then
|
||||
|
@ -42,6 +42,8 @@ git() {
|
|||
elif [[ "$1" == "commit" && "$@" != *"--help"* && ( "$@" != *"--signoff"* && "$@" != *"-s"* && $@ != *"--amend" ) ]]; then
|
||||
[ $DEBUG != "" ] && echo "args: $@ --signoff" && sleep 3
|
||||
command git "$@" --signoff
|
||||
elif [[ "$1" == "pull" && "$@" != *"--help"* && ( "$@" != *"--signoff"* && "$@" != *"-s"* ) ]]; then
|
||||
command git "$@" --signoff
|
||||
else
|
||||
command git "$@"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue