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

Re: `ab | (cd cd && git apply -)' fails with v2.0.0

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Jul 24, 2014, 14:22 UTC
Message-ID
<53D116B9.3050809@drmicha.warpmail.net>
In-Reply-To
<20140724142945.iERQ798d%sdaoden@yandex.com>
Steffen Nurpmeso venit, vidit, dixit 24.07.2014 15:29:
Show 18 quoted lines
> Hello (again, psssssst, after a long time),
> 
> it happened yesterday that i needed to do
> 
>   $ git diff HEAD:FILE COMMIT:SAME-FILE |
>   > (cd src && git apply -) 
> 
> but found that didn't work with v2.0.0 (silently succeeds?, doing
> nothing).  It works without the subshell and the cd(1); i had to
> use `(cd src && patch -p2)' instead to keep in going.
> Just in case that is not known yet (i've updated my git(1) repo,
> but in the 1466 commits in between nothing sprung into my eye
> regarding apply, and a Gmane search didn't, too).
> No need to Cc: me, please just fix it; thank you.
> Ciao,
> 
> --steffen
> 

Ah little more context would help. Are you diffing files in the subdir src, or a file at the root which happens to be present in the subdir src as well?

Michael
Previous: Steffen NurpmesoNext: Junio C Hamano
Message 2 of 5 in “`ab | (cd cd && git apply -)' fails with v2.0.0”
  1. Steffen NurpmesoJul 24, 2014
  2. Michael J GruberJul 24, 2014
  3. Junio C HamanoJul 24, 2014
  4. Michael J GruberJul 25, 2014
  5. Steffen NurpmesoJul 25, 2014

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.