add --draft/-d option
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Fri, 27 Jun 2014 12:40:32 +0000 (14:40 +0200)
committerOswald Buddenhagen <oswald.buddenhagen@digia.com>
Mon, 30 Jun 2014 11:11:50 +0000 (13:11 +0200)
commitb40a43a1a3d93d31819096854100de27208d8188
treebd92a902fc424ff768e36fba359ef162890ffc75
parenta25e300e7e6e425c0d3bdb65d661e76060a46559
add --draft/-d option

i considered making --draft the default. however, i didn't like the
change of default behavior.

then it occurred to me that automatically detecting WIP subjects like
the sanity bot does would actually fit our current workflow pretty
neatly.
we are looking only at the last commit, as that's likely to be the one
which is WIP. also, in "unbased" push mode, determining the start of the
range to look at would cause quite some overhead.

Change-Id: I70f6f397693f600b6a5d5791f04d9cae12fa8d02
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
bin/git-gpush