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

Re: [RFD] minor frustration in 'git add' pathname completion

From
Stefan Beller <sbeller@google.com>
Date
Mar 24, 2016, 21:56 UTC
Message-ID
<CAGZ79kaUPf=kBCuH__8BahjM3WjSGaijiQr05pMKe+TNdg3W9w@mail.gmail.com>
In-Reply-To
<xmqqr3ez7dqw.fsf@gitster.mtv.corp.google.com>
On Thu, Mar 24, 2016 at 2:44 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Discuss.
> For example, I keep
> a backup version of whats-cooking.txt in the working tree that I use
> to manage the 'todo' branch as whats-cooking.txt+, and this is not
> explicitly "ignored".

Completely side tracking thought: Have you considered ignoring whats-cooking.txt+ locally?

WC+ is a local thing to your repo, so you'd want to prefer $GIT_DIR/info/exclude over .gitignore.

You wish to ignore WC+ by git, so make it be ignored, instead of changing the git add rules. Your proposal feels like fixing the symptoms instead of the root cause.

I can see (3) being useful as it narrows down the list by a lot, I would imagine.

As I rarely use git add, but prefer git-gui, I have no experience though for git-add completion, but if you had one conflict after a bad merge you can just do git add <TAB> to get that file(?), so I guess people use it.

Stefan
Show 7 quoted lines
>
> Thanks.
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 8 in “[RFD] minor frustration in 'git add' pathname completion”
  1. Junio C HamanoMar 24, 2016
  2. Stefan BellerMar 24, 2016
  3. Junio C HamanoMar 24, 2016
  4. Junio C HamanoMar 24, 2016
  5. Stefan BellerMar 24, 2016
  6. Junio C HamanoMar 24, 2016
  7. Jacob KellerMar 25, 2016
  8. Junio C HamanoMar 24, 2016

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.