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

Re: GNU patch: new 2.6 release

From
Björn Gustavsson <bgustavsson@gmail.com>
Date
Nov 15, 2009, 14:02 UTC
Message-ID
<6672d0160911150602r450ae91fl34f533a39e61ed7@mail.gmail.com>
In-Reply-To
<200911151437.56228.trast@student.ethz.ch>
2009/11/15 Thomas Rast <trast@student.ethz.ch>:
Show 7 quoted lines
> Björn Gustavsson wrote:
>> That would be very useful in a workflow when you work in git (and have some
>> binary files in the repository), but need to commit your finished work
>> into another VCS (such as Clearcase).
>
> You can simply use git-apply in this case, it also works outside a git
> repository.

Thanks, I didn't know that. I just assumed that it used the index or generally depended on being run in a git repository.

The patch program does one thing that git-apply does not -- it can check out the files to be patched (for systems that need it, such as Clearcase or RCS). I will have to handle that myself (but that is not hard, I can either use 'git diff --name-only' to find out the file names or extract the names from the patch itself).

/Björn
-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB
Previous: Thomas Rast
Message 6 of 6 in “GNU patch: new 2.6 release”
  1. Andreas GruenbacherNov 14, 2009
  2. Björn GustavssonNov 14, 2009
  3. Andreas GruenbacherNov 14, 2009
  4. Björn GustavssonNov 14, 2009
  5. Thomas RastNov 15, 2009
  6. Björn GustavssonNov 15, 2009

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.