Commit 1053ae48 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add git_commit_ignore_nothing

parent ef9a947c
......@@ -62,3 +62,10 @@ list_git_package()
{
_list_git_package $(ssh $GIRARHOST find-package $1)
}
git_commit_ignore_nothing()
{
git commit "$@" && return
git commit "$@" 2>&1 | grep "nothing to commit" && return 0
return 1
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment