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

[PATCH v2 2/3] format-patch: make full-diff enabled by default

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Nov 28, 2009, 11:40 UTC
Message-ID
<1259408429-5685-3-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1259408429-5685-1-git-send-email-felipe.contreras@gmail.com>

It doesn't make much sense to generate partial patches (with some paths omitted).

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 builtin-log.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/builtin-log.c b/builtin-log.c
index 1766349..1e06859 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -960,6 +960,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
 	rev.diff = 1;
 	rev.combine_merges = 0;
 	rev.ignore_merges = 1;
+	rev.full_diff = 1;
 	DIFF_OPT_SET(&rev.diffopt, RECURSIVE);
 
 	rev.subject_prefix = fmt_patch_subject_prefix;
-- 
1.6.6.rc0.59.g5117f7.dirty
Previous: Felipe ContrerasNext: Nanako Shiraishi
Message 3 of 6 in “format-patch: improve pathspec usage”
  1. 0/3 format-patch: improve pathspec usageFelipe Contreras, Nov 28, 2009
  2. 1/3 format-patch: fix dashdash usageFelipe Contreras, Nov 28, 2009
  3. 2/3 format-patch: make full-diff enabled by defaultFelipe Contreras, Nov 28, 2009
  4. Nanako ShiraishiJan 5, 2010
  5. 3/3 format-patch: add test for dashdashFelipe Contreras, Nov 28, 2009
  6. Junio C HamanoNov 28, 2009

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.