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

[PATCH v2 1/2] bash completion: move pickaxe options to log

From
Thomas Rast <trast@student.ethz.ch>
Date
Jan 19, 2009, 21:17 UTC
Message-ID
<1232399880-22036-1-git-send-email-trast@student.ethz.ch>
In-Reply-To
<20090119173153.GB14053@spearce.org>

Move the options --pickaxe-all and --pickaxe-regex to git-log, where they make more sense than with git-diff.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
---
Shawn O. Pearce wrote:
Show 9 quoted lines
> Junio C Hamano <gitster@pobox.com> wrote:
> > The changes around pickaxe made me "Huh?".  For log pickaxe makes very
> > good sense but for a single diff it doesn't, yet the original seems to
> > have had them only on "git diff" and not on "git log", which feels wrong.
> 
> I agree completely.  The pickaxe stuff in current completion is
> just plain wrong.  I'd like to see it fixed with this cleanup.
> Maybe do it in two parts; fix the pickaxe options to be on log
> and not diff, and then do the cleanup for the common options.

Good point. Sorry for not noticing in the first place; I was too focused on just getting git-show completion working ;-)

 contrib/completion/git-completion.bash |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 60497a4..b5d3bbb 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -784,7 +784,7 @@ _git_diff ()
 			--patch-with-stat --name-only --name-status --color
 			--no-color --color-words --no-renames --check
 			--full-index --binary --abbrev --diff-filter=
-			--find-copies-harder --pickaxe-all --pickaxe-regex
+			--find-copies-harder
 			--text --ignore-space-at-eol --ignore-space-change
 			--ignore-all-space --exit-code --quiet --ext-diff
 			--no-ext-diff
@@ -986,6 +986,7 @@ _git_log ()
 			--parents --children --full-history
 			--merge
 			--inter-hunk-context=
+			--pickaxe-all --pickaxe-regex
 			"
 		return
 		;;
-- 
tg: (28da86a..) t/bash-complete-pickaxe (depends on: origin/master)
Previous: Shawn O. PearceNext: Thomas Rast
Message 6 of 8 in “bash completion: refactor diff options”
  1. bash completion: refactor diff optionsThomas Rast, Jan 11, 2009
  2. bash completion: refactor diff optionsThomas Rast, Jan 12, 2009
  3. bash completion: refactor diff optionsThomas Rast, Jan 18, 2009
  4. Junio C HamanoJan 18, 2009
  5. Shawn O. PearceJan 19, 2009
  6. 1/2 bash completion: move pickaxe options to logThomas Rast, Jan 19, 2009
  7. 2/2 bash completion: refactor diff optionsThomas Rast, Jan 19, 2009
  8. Junio C HamanoJan 20, 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.