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

git apply didn't catch error? [was Re: [PATCH] Documentation/diff-options.txt: unify options]

From
jidanni@jidanni.org <jidanni@jidanni.org>
Date
Dec 30, 2008, 00:02 UTC
Message-ID
<87r63q34ys.fsf_-_@jidanni.org>
In-Reply-To
<7vabafe5ai.fsf@gitster.siamese.dyndns.org>

JCH> $ wget http://article.gmane.org/gmane.comp.version-control.git/104017/raw JCH> $ git apply raw JCH> error: diff-options.txt: No such file or directory JCH> $ echo $? JCH> 1 $ cd Documentation $ git apply ../raw $ echo $? 0 So then one thinks "why of course, the changes we already applied." However if one makes some sneaky changes: $ diff ../raw.original raw 46c46 < index 5721548..b05503a 100644 ---

> index 6721548..c05503a 100644

70c70 < +-w:: ---

> +-w::ZZZZZZZZZZZZZZZZZZ

One gets the same $?=0. git apply should scream instead of silently returning 0 and doing nothing. git version 1.6.0.6.

Previous: Junio C Hamano
Message 8 of 8 in “Documentation/diff-options.txt: unify options”
  1. Documentation/diff-options.txt: unify optionsjidanni@jidanni.org, Dec 27, 2008
  2. Junio C HamanoDec 27, 2008
  3. jidanni@jidanni.orgDec 27, 2008
  4. Junio C HamanoDec 28, 2008
  5. jidanni@jidanni.orgDec 29, 2008
  6. Junio C HamanoDec 29, 2008
  7. Junio C HamanoDec 29, 2008
  8. git apply didn't catch error? [was Re: [PATCH] Documentation/diff-options.txt: unify options]jidanni@jidanni.org, Dec 30, 2008

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.