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

Re: [feature request] git add completion should exclude staged content

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 28, 2013, 17:52 UTC
Message-ID
<7vd2wpxki1.fsf@alter.siamese.dyndns.org>
In-Reply-To
<5106A5CE.3000800@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 12 quoted lines
> Manlio Perillo venit, vidit, dixit 28.01.2013 15:02:
>> Please, test it and report any behaviour you think is incorrect.
>
> OK, that seems to work and to be quite helpful.
>
> Minor nit: "git add -u" could use the same fileset as "git commit". But
> I don't know whether completion can act upon the presence of options.
> Currently, it also includes untracked files (just like without -u) but
> omits unmodified and ignored ones, which is already quite an improvement.
>
> I won't be able to review the completion code but may contribute a few
> lines to t/t9902-completion.sh, possibly.

Thanks both for commenting. I'll find time to read it over again and perhaps we can merge it to 'next' and advertise it in the next issue of "What's cooking" report to ask for wider testing to move it forward.

Previous: Michael J GruberNext: Manlio Perillo
Message 7 of 13 in “[feature request] git add completion should exclude staged content”
  1. wookietreiberJan 26, 2013
  2. Junio C HamanoJan 27, 2013
  3. Manlio PerilloJan 28, 2013
  4. Michael J GruberJan 28, 2013
  5. Manlio PerilloJan 28, 2013
  6. Michael J GruberJan 28, 2013
  7. Junio C HamanoJan 28, 2013
  8. Manlio PerilloJan 28, 2013
  9. Marc KhouzamJan 30, 2013
  10. Manlio PerilloJan 30, 2013
  11. Marc KhouzamJan 30, 2013
  12. Manlio PerilloJan 30, 2013
  13. Manlio PerilloJan 28, 2013

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.