git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-bugzilla

From
SFSteve Frécinaux <nudrema@gmail.com>
Date
Nov 16, 2008, 21:00 UTC
Message-ID
<492089EA.60205@gmail.com>
Hi folks,

Here is a chunk of code I wrote a few time ago, to post patches to bugzilla, modelled mostly after git-format-patch/git-send-email.

You can find it there: http://code.istique.net/?p=git-bugzilla.git

It is written in perl and requires WWW::Mechanize.
Hope you like it.
Here is an excerpt of the man page:

NAME ---- git-send-bugzilla - Attach patches to a bugzilla bug

SYNOPSIS
--------
'git-send-bugzilla' [OPTIONS] (--dry-run | <bugid>)
                     <since>[..<until>]

DESCRIPTION -----------

Attach each commit between <since> and <until> to the bug <bugid> on GNOME's bugzilla. If ..<until> is not specified, the head of the current working tree is implied.

If -n (or bugzilla.numbered in the repository configuration) is specified, instead of "[PATCH] Subject", the first line is formatted as "[n/m] Subject".

OPTIONS
-------
-b|--url <url>::
         The Bugzilla URL.
-u|--username <username>::
         Your Bugzilla user name.
-p|--password <password>::
         Your Bugzilla password.
-s|--squash::
         Send all the selected commits as a single patch.
-n|--numbered::
         Prefix attachment names with [n/m].
--start-number <n>::
         Start numbering the patches at <n> instead of 1.
--dry-run::
         Don't do anything for real. If you use this option you
         shouldn't specify a bug id.
EXAMPLES
--------
git-send-bugzilla -n 12345 master
         Extract all commits which are in the current branch but
         not in the 'master' branch. Each commit will be attached as
         a single patch to the bug #12345
Next: Jakub Narebski
Message 1 of 2 in “git-bugzilla”
  1. Steve FrécinauxNov 16, 2008
  2. Jakub NarebskiNov 17, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.