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

Re: Unable to use --patch with git add

From
Santiago Torres <santiago@nyu.edu>
Date
Oct 11, 2017, 17:49 UTC
Message-ID
<20171011174952.almye3qa2tmyrmol@LykOS.localdomain>
In-Reply-To
<CAEBs8jLnU44n2fhE8tGommqfEpFPdd0FLUtmeZXZ+qhB1RV6XQ@mail.gmail.com>
It'd be helpful to know:
- What did you do?
- What did you expect to happen?
- What happened instead?

I suspect you are using --patch with a new file, so you probably need to first add it with -N or so. This is just a shot in the dark though...

Thanks, -Santiago.

On Wed, Oct 11, 2017 at 11:16:39PM +0530, Ayush Goel wrote:
Show 8 quoted lines
> $ git --version
> git version 2.14.2
> 
> What more details can I provide to help debug this?
> 
> -- 
> Regards,
> Ayush Goel
Previous: Ayush GoelNext: Ayush Goel
Message 2 of 8 in “Unable to use --patch with git add”
  1. Ayush GoelOct 11, 2017
  2. Santiago TorresOct 11, 2017
  3. Ayush GoelOct 11, 2017
  4. Jeff KingOct 11, 2017
  5. Ayush GoelOct 11, 2017
  6. Jeff KingOct 11, 2017
  7. Jonathan NiederOct 12, 2017
  8. Kevin DaudtOct 11, 2017

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.