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

[PATCH 2/6] bash: Hide diff-stages from completion.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 5, 2007, 20:44 UTC
Message-ID
<20070205204424.GB8824@spearce.org>

Apparently nobody really makes use of git-diff-stages, as nobody has complained that it is not supported by the git-diff frontend. Since its likely this will go away in the future, we should not offer it as a possible subcommand completion.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 contrib/completion/git-completion.bash |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index c22ff48..c4d433f 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -269,6 +269,7 @@ __git_commands ()
 		cvsimport)        : import;;
 		cvsserver)        : daemon;;
 		daemon)           : daemon;;
+		diff-stages)      : nobody uses it;;
 		fsck-objects)     : plumbing;;
 		fetch-pack)       : plumbing;;
 		fmt-merge-msg)    : plumbing;;
-- 
1.5.0.rc3.58.g79812
Next: Jakub Narebski
Message 1 of 7 in “bash: Hide diff-stages from completion.”
  1. 2/6 bash: Hide diff-stages from completion.Shawn O. Pearce, Feb 5, 2007
  2. Jakub NarebskiFeb 5, 2007
  3. Shawn O. PearceFeb 5, 2007
  4. Nicolas PitreFeb 5, 2007
  5. Jakub NarebskiFeb 5, 2007
  6. Nicolas PitreFeb 5, 2007
  7. Jakub NarebskiFeb 6, 2007

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.