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

Re: git-add--interactive works only in top level

From
RBReid Barton <rwbarton@mit.edu>
Date
Dec 4, 2007, 06:07 UTC
Message-ID
<4BC1648E-3059-4373-B388-65AD739796D8@MIT.EDU>
In-Reply-To
<7vwsrv9fos.fsf@gitster.siamese.dyndns.org>
On Dec 4, 2007, at 12:44 AM, Junio C Hamano wrote:
Show 6 quoted lines
> Sheesh, you got me worried.
>
> This is a non issue; git-add--interactive is not for direct end user
> consumption.  It relies on being run from git-add wrapper, which does
> cdup to the top of the work tree before launching add--interactive
> helper.

Ah, OK. Would it not be easy then to add a check to the beginning of git-add--interactive to verify that it is indeed being run from the top of the work tree? A user may well discover git-add--interactive before git-add --interactive (e.g. by shell completion) and if git- add--interactive is going to fail, it should do so right away so as to not confuse the user.

I understand that programs such as git-add--interactive will be moved out of the executable path not too long from now, which will also ameliorate the situation.

Regards, Reid Barton

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 9 in “git-add--interactive works only in top level”
  1. Reid BartonDec 4, 2007
  2. Junio C HamanoDec 4, 2007
  3. Reid BartonDec 4, 2007
  4. Junio C HamanoDec 4, 2007
  5. Wincent ColaiutaDec 4, 2007
  6. Johannes SchindelinDec 4, 2007
  7. Wincent ColaiutaDec 4, 2007
  8. Jakub NarebskiDec 4, 2007
  9. Junio C HamanoDec 4, 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.