* [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