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

Re: [PATCH] diff-options: add --stat

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 13, 2006, 01:32 UTC
Message-ID
<Pine.LNX.4.63.0604130331210.12456@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<Pine.LNX.4.63.0604130308150.11360@wbgn013.biozentrum.uni-wuerzburg.de>
Hi,
On Thu, 13 Apr 2006, Johannes Schindelin wrote:
> I just realized that something is wrong with this patch: the first file 
> of the patchset seems to be ignored. I'll fix it tomorrow.
Okay, so I lied: I fixed it today.
diff --git a/diff-tree.c b/diff-tree.c
index 2b79dd0..536da8e 100644
--- a/diff-tree.c
+++ b/diff-tree.c
@@ -117,7 +117,8 @@ int main(int argc, const char **argv)
 	if (opt->dense_combined_merges)
 		opt->diffopt.output_format = DIFF_FORMAT_PATCH;
 
-	if (opt->diffopt.output_format == DIFF_FORMAT_PATCH)
+	if (opt->diffopt.output_format == DIFF_FORMAT_DIFFSTAT ||
+			opt->diffopt.output_format == DIFF_FORMAT_PATCH)
 		opt->diffopt.recursive = 1;
 
 	diff_tree_setup_paths(get_pathspec(prefix, argv), opt);
diff --git a/git.c b/git.c
index 5cb0d32..e4fcf92 100644
--- a/git.c
+++ b/git.c
@@ -344,7 +344,8 @@ static int cmd_log(int argc, const char 
 			opt.ignore_merges = 0;
 		if (opt.dense_combined_merges)
 			opt.diffopt.output_format = DIFF_FORMAT_PATCH;
-		if (opt.diffopt.output_format == DIFF_FORMAT_PATCH)
+		if (opt.diffopt.output_format == DIFF_FORMAT_DIFFSTAT ||
+				opt.diffopt.output_format == DIFF_FORMAT_PATCH)
 			opt.diffopt.recursive = 1;
 		if (!full_diff && rev.prune_data)
 			diff_tree_setup_paths(rev.prune_data, &opt.diffopt);
Previous: Johannes SchindelinNext: Junio C Hamano
Message 3 of 13 in “diff-options: add --stat”
  1. diff-options: add --statJohannes Schindelin, Apr 13, 2006
  2. Johannes SchindelinApr 13, 2006
  3. Johannes SchindelinApr 13, 2006
  4. Junio C HamanoApr 13, 2006
  5. Junio C HamanoApr 13, 2006
  6. Johannes SchindelinApr 13, 2006
  7. Marco CostalbaApr 13, 2006
  8. Johannes SchindelinApr 13, 2006
  9. Junio C HamanoApr 13, 2006
  10. Linus TorvaldsApr 13, 2006
  11. Junio C HamanoApr 13, 2006
  12. Linus TorvaldsApr 13, 2006
  13. Johannes SchindelinApr 13, 2006

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.