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

Re: let git-diff allow patch to delete empty files?

From
SLSam Liddicott <sam@liddicott.com>
Date
Nov 6, 2008, 03:33 UTC
Message-ID
<4912AB20.4070608@liddicott.com>
In-Reply-To
<20081106060940.6117@nanako3.lavabit.com>
* Nanako Shiraishi wrote, On 05/11/08 21:09:
Show 11 quoted lines
> Quoting "Sam Liddicott" <sam@liddicott.com>:
>
>   
>> In some cases "patch" cannot apply diff's generated using git-diff, I've
>> had a "git diff" output look like this when an empty file was removed as
>> the only change:
>>     
>
> Even if you do not use git to manage your changes, you can use "git apply" from outside of a git repository as a replacement for "patch".
>
>   
Good tip, thanks.

In this case it is rpmbuild that is doing the patching, and making git a build-requires would not be popular.

Sam
Previous: Nanako Shiraishi
Message 4 of 4 in “let git-diff allow patch to delete empty files?”
  1. Sam LiddicottNov 5, 2008
  2. Sam LiddicottNov 5, 2008
  3. Nanako ShiraishiNov 5, 2008
  4. Sam LiddicottNov 6, 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.