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

[PATCH v2] completion: Add --full-diff to log options

From
Todd Zullinger <tmz@pobox.com>
Date
Jun 3, 2009, 20:20 UTC
Message-ID
<20090603202058.GA28808@inocybe.localdomain>
In-Reply-To
<200906031630.09962.trast@student.ethz.ch>
Signed-off-by: Todd Zullinger <tmz@pobox.com>
---
Thomas Rast wrote:
Show 12 quoted lines
> Todd Zullinger wrote:
>> I *think* __git_log_gitk_options is the proper place for it, but it's
>> early in the a.m. and I'm not averse to being proved wrong.
> [...]
>>  # Options that go well for log and gitk (not shortlog)
>>  __git_log_gitk_options="
>> -	--dense --sparse --full-history
>> +	--dense --sparse --full-diff --full-history
>
> Gitk has its own setting in the Preferences called "limit diffs to
> listed paths", and ignores this option, so it should go directly in
> _git_log.
Ahh, thanks Thomas.
 contrib/completion/git-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 98b9cbe..79a99af 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1157,7 +1157,7 @@ _git_log ()
 			$__git_log_shortlog_options
 			$__git_log_gitk_options
 			--root --topo-order --date-order --reverse
-			--follow
+			--follow --full-diff
 			--abbrev-commit --abbrev=
 			--relative-date --date=
 			--pretty= --format= --oneline
-- 
1.6.3.1

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have to decide between two equally frightening options.  If I wanted
to do that, I'd vote.
    -- Duckman
Previous: Thomas RastNext: Eric Wong
Message 5 of 6 in “wrong expectation from "git log -p"”
  1. Thomas SpuraJun 2, 2009
  2. Junio C HamanoJun 2, 2009
  3. completion: Add --full-diff to log/gitk optionsTodd Zullinger, Jun 3, 2009
  4. Thomas RastJun 3, 2009
  5. completion: Add --full-diff to log optionsTodd Zullinger, Jun 3, 2009
  6. Eric WongJul 5, 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.