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

[PATCH] revision: add --no-full-diff command line option

From
Jeff King <peff@peff.net>
Date
Dec 20, 2006, 08:41 UTC
Message-ID
<20061220084107.GA6895@coredump.intra.peff.net>
In-Reply-To
<7v8xh3j86h.fsf@assigned-by-dhcp.cox.net>
Signed-off-by: Jeff King <peff@peff.net>
---
On Wed, Dec 20, 2006 at 12:14:14AM -0800, Junio C Hamano wrote:
Show 5 quoted lines
> > I use --full-diff all the time, so this should save some typing. I can't
> > think of a time when I wouldn't want it on, but if there is, we probably
> > need a --no-full-diff.
> 
> Absolutely.
I took this to mean "absolutely we need --no-full-diff." :)

I note that --full-diff sets rev->diff = 1. The log.fulldiff config option does not, and nor does --no-full-diff unset it. However, I'm not sure it makes sense to set it. Doing "git-log --full-diff" outputs an extra line (separating the diff from the commit log) but since we haven't told it any type of diff to output, the diff is blank. And if we had told it a type, then that would have turned on rev->diff. So I don't see a point in setting it.

 revision.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/revision.c b/revision.c
index 56819f8..ac4dbf2 100644
--- a/revision.c
+++ b/revision.c
@@ -955,6 +955,10 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
 				revs->full_diff = 1;
 				continue;
 			}
+			if (!strcmp(arg, "--no-full-diff")) {
+				revs->full_diff = 0;
+				continue;
+			}
 			if (!strcmp(arg, "--full-history")) {
 				revs->simplify_history = 0;
 				continue;
-- 
1.4.4.2.gee7ba-dirty
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “add log.fulldiff config option”
  1. add log.fulldiff config optionJeff King, Dec 20, 2006
  2. Junio C HamanoDec 20, 2006
  3. revision: add --no-full-diff command line optionJeff King, Dec 20, 2006
  4. Junio C HamanoDec 20, 2006
  5. Jeff KingDec 20, 2006
  6. Junio C HamanoDec 20, 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.