From fde186b65504c3cada82f84ac9763acf0fed128a Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sun, 16 Nov 2008 11:59:29 -0500 Subject: Add add-url subcommand and -u/--add-url command line options git bz add-url: new subcommand to rewrite old commit messages to include a bug URL. git bz attach/file: -u/--add-url option rewrites commit messages as with 'add-url' before attaching patches to bugzilla. git bz apply: -u/--add-url option rewrites commit messages after applying patches to the current tree. --- TODO | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 2fc20fa..010c89c 100644 --- a/TODO +++ b/TODO @@ -6,20 +6,6 @@ any intention of working on it myself. - Owen - --u/--add-url Option - - When specified, local commits are edited to append the Bug URL. - - attach: Before attaching them to the bug - - Requires: clean index and a series of bugs that leads to the - current HEAD commit. - Can't be the default because commits might have already been pushed - Should be smart if the URL is already in the bug - Might be useful to have a standalone 'add-url' subcommand that can - be used to fix up if you forget to specify it. - Use XML-RPC when available. Maybe use python-bugzilla: http://fedorahosted.org/python-bugzilla/ @@ -45,3 +31,10 @@ More general patch application as well. For general patches, you would use information from bugzilla to prime the author and commit message, but allow further editing of the commit message. + +Make -u/--add-url kinder on the reflog + + -u works by resetting, then on each patch, running git cherry-pick + followed by git commit --amend. It would be nice to only have one + (informative) reflog entry for the entire process, or at least avoid + the double commits. -- cgit v1.2.3