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

Re: Re* git commit fails under some circumstances

From
Jeff King <peff@github.com>
Date
Apr 6, 2011, 17:57 UTC
Message-ID
<20110406175700.GB8205@sigill.intra.peff.net>
In-Reply-To
<7v1v1fjnsu.fsf@alter.siamese.dyndns.org>
On Wed, Apr 06, 2011 at 10:24:17AM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > I am much more concerned with whether and how this information would be
> > represented in the "git status --porcelain" format.
> 
> I earlier suggested using 'I'; a safer alternative would be to change
> nothing and let the callers figure it out.
Ah, sorry, I missed that.
> I slightly favor the former; while there is a definite risk of
> breaking scripts' expectations, they can be tentatively marked "this
> script does not work until you 'git add' paths you used 'add -N'" and
> I don't think it would be such a big deal.

I think that is reasonable. Maintaining backwards compatibility doesn't mean we can _never_ expand to cover new situations or give more information. In this case we would be maintaining syntactic compatibility, and have identical output when the "add -N" feature is not used.

-Peff
Previous: Junio C Hamano
Message 8 of 8 in “git commit fails under some circumstances”
  1. Laszlo PappApr 2, 2011
  2. Re* git commit fails under some circumstancesJunio C Hamano, Apr 2, 2011
  3. Will PalmerApr 5, 2011
  4. Junio C HamanoApr 5, 2011
  5. Will PalmerApr 5, 2011
  6. Jeff KingApr 5, 2011
  7. Junio C HamanoApr 6, 2011
  8. Jeff KingApr 6, 2011

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.