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

Re: [PATCH] bash-completion: add git-prune into bash completion

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 22, 2020, 18:28 UTC
Message-ID
<xmqq366ndkey.fsf@gitster.c.googlers.com>
In-Reply-To
<pull.667.git.1592784835441.gitgitgadget@gmail.com>
"John Lin via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 5 quoted lines
> From: John Lin <johnlinp@gmail.com>
>
> Sometimes git would suggest the user to run `git prune` when there are
> too many unreachable loose objects. It's more user-friendly if we add
> git-prune into bash completion.

Yes, but it does not suggest all the time, and there is a reason. Most of the time "gc" is more appropriate, but there are narrow cases where "prune" is more appropriate and that is when the users will see suggestion to run "prune".

Isn't it too much to type p-r-u-n-e while seeing that message, typing as you read it?

I do not think it hurts to complete "git prune", in the sense that we would want to avoid completing potentially destructive operation to those who do not understand the implications, because the command is pretty much benign. But I am not sure it forces users to type too many keystrokes too frequently that it requires a tab completion. I dunno.

Will queue for now.
Thanks.
Previous: John Lin via GitGitGadgetNext: 林自均
Message 2 of 4 in “bash-completion: add git-prune into bash completion”
  1. bash-completion: add git-prune into bash completionJohn Lin via GitGitGadget, Jun 22, 2020
  2. Junio C HamanoJun 22, 2020
  3. 林自均Jul 10, 2020
  4. Junio C HamanoJul 10, 2020

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.