git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] Allow format-patch to create patches for merges
       [not found] <d77df1110901260827j2200fe41oe1b84c387d88aba () mail ! gmail ! com>
@ 2009-01-26 16:43 ` Nathan W. Panike
  2009-01-26 19:34   ` Sverre Rabbelier
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan W. Panike @ 2009-01-26 16:43 UTC (permalink / raw)
  To: git; +Cc: Nathan W. Panike

The behavior for git format-patch is to ignore merge commits, producing an
empty patch.  The code does not allow the user to change this behavior. This
patch changes that behavior by allowing the user to specify -c or -m at the
command line to produce a patch for a merge commit.

Signed-off-by: Nathan W. Panike <nathan.panike@gmail.com>
---
Add Sign off.

This seems to solve my problem, but maybe my workflow is sufficiently different
that it is a problem no one else has. Maybe someone can point me in a direction
that solves problems more users have.

Thanks,

Nathan Panike
 builtin-log.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/builtin-log.c b/builtin-log.c
index 2ae39af..ea4729d 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -994,10 +994,6 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
 			continue;
 		}
 
-		/* ignore merges */
-		if (commit->parents && commit->parents->next)
-			continue;
-
 		if (ignore_if_in_upstream &&
 				has_commit_patch_id(commit, &ids))
 			continue;
-- 
1.6.1.1.GIT

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] Allow format-patch to create patches for merges
  2009-01-26 16:43 ` [PATCH v2] Allow format-patch to create patches for merges Nathan W. Panike
@ 2009-01-26 19:34   ` Sverre Rabbelier
  0 siblings, 0 replies; 2+ messages in thread
From: Sverre Rabbelier @ 2009-01-26 19:34 UTC (permalink / raw)
  To: Nathan W. Panike; +Cc: git

On Mon, Jan 26, 2009 at 17:43, Nathan W. Panike <nathan.panike@gmail.com> wrote:
> This seems to solve my problem, but maybe my workflow is sufficiently different
> that it is a problem no one else has. Maybe someone can point me in a direction
> that solves problems more users have.

It seems like you want to use bundles instead of patches? Since you're
using it just to propagate your changes...?

-- 
Cheers,

Sverre Rabbelier

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-26 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <d77df1110901260827j2200fe41oe1b84c387d88aba () mail ! gmail ! com>
2009-01-26 16:43 ` [PATCH v2] Allow format-patch to create patches for merges Nathan W. Panike
2009-01-26 19:34   ` Sverre Rabbelier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).