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

Minor UX annoyance w/`git add --patch untracked/file`

From
VCVito Caputo <vcaputo@pengaru.com>
Date
Nov 30, 2023, 19:26 UTC
Message-ID
<20231130192637.wqpmidfv2roqmxdx@shells.gnugeneration.com>
Hello list,
Couldn't the following two steps be done automagically by --patch:

``` git add -N path/to/untracked/file/wishing/to/partially/add git add --patch path/to/untracked/file/wishing/to/partially/add ```

when one simply does:
`git add --patch path/to/untracked/file/wishing/to/partially/add`
?

Cheers, Vito Caputo

Next: Jeff King
Message 1 of 4 in “Minor UX annoyance w/`git add --patch untracked/file`”
  1. Vito CaputoNov 30, 2023
  2. Jeff KingDec 6, 2023
  3. Junio C HamanoDec 8, 2023
  4. Taylor BlauDec 8, 2023

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.