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

[PATCH] Allow pickaxe to be used via git log.

From
Sean <seanlkml@sympatico.ca>
Date
May 19, 2006, 01:31 UTC
Message-ID
<BAYC1-PASMTP04945C92FB14DA65AB1AC7AEA70@CEZ.ICE>

Handle the -S option when passed to git log such that only the appropriate commits are displayed. Unlike "whatchanged", by default no diff output is produced.

---

This came out of recent comments on #git and will hopefully further reduce the need for git-whatchanged.

ecdfaa21dbff93a6a387b02e1f1d3ebf05ee517d
 revision.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
ecdfaa21dbff93a6a387b02e1f1d3ebf05ee517d
diff --git a/revision.c b/revision.c
index 2294b16..2e18b2b 100644
--- a/revision.c
+++ b/revision.c
@@ -743,6 +743,13 @@ int setup_revisions(int argc, const char
 				continue;
 			}
 			opts = diff_opt_parse(&revs->diffopt, argv+i, argc-i);
+			if (revs->diffopt.pickaxe && revs->always_show_header) {
+				revs->always_show_header = 0;
+				revs->diff = 1;
+				revs->diffopt.recursive = 1;
+				if (revs->diffopt.output_format == DIFF_FORMAT_RAW)
+					revs->diffopt.output_format = DIFF_FORMAT_NO_OUTPUT;
+			}
 			if (opts > 0) {
 				revs->diff = 1;
 				i += opts - 1;
-- 
1.3.GIT
Next: Junio C Hamano
Message 1 of 10 in “Allow pickaxe to be used via git log.”
  1. Allow pickaxe to be used via git log.Sean, May 19, 2006
  2. Junio C HamanoMay 19, 2006
  3. SeanMay 19, 2006
  4. Junio C HamanoMay 19, 2006
  5. SeanMay 19, 2006
  6. Junio C HamanoMay 19, 2006
  7. Allow pickaxe and diff-filter options to be used by git log.Sean, May 19, 2006
  8. Junio C HamanoMay 19, 2006
  9. SeanMay 19, 2006
  10. Junio C HamanoMay 19, 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.