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

Re: [PATCH RFC] commit: allow to commit even if there are intent-to-add entries

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 11, 2012, 08:08 UTC
Message-ID
<7vr4z67jbb.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1326261707-11484-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
> This patch replaces the approach in 331fcb5 (git add --intent-to-add:
> do not let an empty blob be committed by accident) regarding i-t-a
> entries: instead of forbidding i-t-a entries at commit time, we can
> simply ignore them.

I have a mild suspicion that in earlier incarnation of the patch we used to let empty blobs committed, and then we used to instead not commit anything at all for such a path, and the real users were bitten by either of these approaches, forgetting to add the contents to the final commit.

So I am not sure if this is such a good idea.
Previous: Nguyễn Thái Ngọc DuyNext: Jonathan Nieder
Message 2 of 12 in “commit: allow to commit even if there are intent-to-add entries”
  1. commit: allow to commit even if there are intent-to-add entriesNguyễn Thái Ngọc Duy, Jan 11, 2012
  2. Junio C HamanoJan 11, 2012
  3. Jonathan NiederJan 11, 2012
  4. Junio C HamanoJan 11, 2012
  5. Nguyen Thai Ngoc DuyJan 12, 2012
  6. Junio C HamanoJan 12, 2012
  7. Nguyễn Thái Ngọc DuyJan 11, 2012
  8. 1/2 cache-tree: update API to take abitrary flagsNguyễn Thái Ngọc Duy, Jan 11, 2012
  9. Junio C HamanoJan 11, 2012
  10. Nguyen Thai Ngoc DuyJan 12, 2012
  11. 2/2 commit: add --skip-intent-to-add to allow commit with i-t-a entries in indexNguyễn Thái Ngọc Duy, Jan 11, 2012
  12. Junio C HamanoJan 11, 2012

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.