diff options
author | Sean Whitton <spw+git@sdf.org> | 2014-09-05 17:34:02 +0900 |
---|---|---|
committer | Sean Whitton <spw+git@sdf.org> | 2014-09-05 17:34:02 +0900 |
commit | 51050b56c6da9d3e8ae8a78d38a2e806f394c518 (patch) | |
tree | 603fb8f3bf4d007f24596619e6860c979d11211e /bin/doccheckin | |
parent | b2acda281b6dd04e05706fe6bfbcbebbcd98ab74 (diff) | |
download | dotfiles-51050b56c6da9d3e8ae8a78d38a2e806f394c518.tar.gz |
doccheckin shouldn't do anything if git is waiting on the user to merge
Diffstat (limited to 'bin/doccheckin')
-rwxr-xr-x | bin/doccheckin | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/doccheckin b/bin/doccheckin index 6d3825d4..089de561 100755 --- a/bin/doccheckin +++ b/bin/doccheckin @@ -1,6 +1,14 @@ -#!/bin/sh +#!/bin/zsh cd ~/doc/ + +# don't do anything if waiting on a manual merge; don't want just +# blanket commit that merge +gstatus=$(git status) +if [[ $gstatus =~ 'You have unmerged paths.' ]]; then + exit +fi + git add org/*.org playlists/*.m3u emacs-abbrevs emacs-bookmarks mutt-aliases mutt-groups # this command should never fail and stop mr |