diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-03 12:36:07 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-03 12:36:07 -0700 |
commit | 1a20f687df5a5a194a182ca1b1ee4ef148beaba3 (patch) | |
tree | eb48b9570216516a7ed9aecc7259613a99f74690 /.mrconfig.in | |
parent | b68ee268a341a9418fa2a9d5fd2b0f56e47b6d2c (diff) | |
download | dotfiles-1a20f687df5a5a194a182ca1b1ee4ef148beaba3.tar.gz |
add an autoci command for ~/lib/nmbugs-spw
Unconditional `nmbug commit` might wipe out git when notmuch db
contains no spw:: tags.
Diffstat (limited to '.mrconfig.in')
-rw-r--r-- | .mrconfig.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.mrconfig.in b/.mrconfig.in index 42496941..288a21f5 100644 --- a/.mrconfig.in +++ b/.mrconfig.in @@ -627,6 +627,14 @@ status = --simplify-by-decoration --decorate --oneline log = nmbug-spw log commit = nmbug-spw commit +# Should be safe to commit a small number of local changes. We're +# trying to avoid: +# - wiping out git because db contains no spw:: tags (`nmbug +# checkout` needed) +# - doing any committing when there are known remote changes. +autoci = + nmbug-spw status | perl -ne'/^.[a-z]\s/ || $. > 10 and exit 1' \ + && nmbug-spw commit skip = ! [ -e "$HOME/local/auth/fmailsyncpass" ] # --- my personal documents. Override my global update command back |