From af02cf3f2ff98e86560d93ef12b49e9f9c81f602 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Tue, 1 Sep 2009 19:13:34 -0400 Subject: Improve URL addition * Avoid false positives when the bug # is a substring of a number in the commit. * Look at the header, not just the body, for an existing bug # * When there are local changes, don't print the diffs to the the screen. * For 'git bz add-url' indicate what commits we are skipping, and don't prompt if we aren't going to do anything. * Don't start the rebase procedure if we aren't going to do anything. --- git-bz | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/git-bz b/git-bz index 903c793..af45d4e 100755 --- a/git-bz +++ b/git-bz @@ -1215,22 +1215,24 @@ class Bug(object): # The Commands # ============= +def commit_needs_url(commit, bug_id): + pat = re.compile(r"(?