summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2009-09-04 20:39:10 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2009-09-04 20:39:10 -0400
commitb3757215bac5deabaf09616ce1086455f94116f2 (patch)
tree89233f9705013018900a8d3dfd396ba0508f423e
parent1c975ace55ac8fc5314787bc6d9031736bf28b88 (diff)
downloadgit-bz-b3757215bac5deabaf09616ce1086455f94116f2.tar.gz
Ignore committed/rejected patches
If patches have a status and it's 'committed' or 'rejected', then skip them for git-bz apply and don't prompt.
-rwxr-xr-xgit-bz4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-bz b/git-bz
index c7e391e..5b9c737 100755
--- a/git-bz
+++ b/git-bz
@@ -1436,6 +1436,10 @@ def do_apply(bug_reference):
print
for patch in bug.patches:
+ if patch.status == 'committed' or patch.status == 'rejected':
+ print "Skipping, %s: %s" % (patch.status, patch.description)
+ continue
+
print patch.description
if not prompt("Apply?"):
continue