Skip to content

Commit de577eb

Browse files
committed
less verbosity in git wrapper functions
1 parent e13013e commit de577eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.zsh/autoload/post/40_git_helpers.zsh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function start_versioning() {
55
if [[ !( -d './.git') ]]; then
66
git init
77
git add . > /dev/null
8-
git commit -m "Initial commit"
8+
git commit -m "Initial commit" > /dev/null
99
fi
1010
#TODO: write data to a syslog-ng file, which will be replayed back later
1111
popd > /dev/null
@@ -19,8 +19,8 @@ function start_versioning() {
1919
function commit_all() {
2020
pushd "$1" > /dev/null
2121
if [[ -d './.git' && ! -z $(git status --porcelain) ]]; then
22-
git add -A .
23-
git commit -m "$2"
22+
git add -A . > /dev/null
23+
git commit -m "$2" > /dev/null
2424
fi
2525
popd > /dev/null
2626
}

0 commit comments

Comments
 (0)