From f69a952c5d66fcd2da40d125374608c04f39960b Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 2 Aug 2011 10:57:48 -0400 Subject: apply: attempt to handle plain diffs If a bug has a plain diff (as opposed to git-format-patch output), prepend some minimal headers to it to get it into a format git-am will accept, and then make the user write a commit message for it before proceeding. https://bugzilla.gnome.org/show_bug.cgi?id=657558 --- git-bz.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'git-bz.txt') diff --git a/git-bz.txt b/git-bz.txt index 2fa298f..9817120 100644 --- a/git-bz.txt +++ b/git-bz.txt @@ -143,7 +143,9 @@ apply them. In addition to simply accepting or rejecting the list of patches, you can also type "i" to interactively choose which patches to apply, and in what order, as with 'git rebase -i'. If any patches are selected, it runs 'git am' on each one to apply it to the current -branch. +branch. (If the bug contains patches in the form of plain diffs, 'git +bz apply' will create a commit based on the other patch metadata, and +prompt you for a commit message.) If a 'git am' operation fails, 'git bz apply' will save its state and then exit, at which point you can attempt to apply the patch by hand -- cgit