From b3757215bac5deabaf09616ce1086455f94116f2 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Fri, 4 Sep 2009 20:39:10 -0400 Subject: 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. --- git-bz | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3