diff options
Diffstat (limited to 'commit')
-rwxr-xr-x | commit | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -131,6 +131,8 @@ function git_commit { # If there are no staged files, commit everything. # Otherwise commit just what was staged if git status --short | grep -q "^[AM]"; then + flag="" + else flag="-a" fi @@ -148,5 +150,6 @@ if [ ! -z "$1" ]; then git_user git_commit $* git_push + git fetch --all fi fi |