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

Re: Creating diffs

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 3, 2006, 14:47 UTC
Message-ID
<eat29j$lil$1@sea.gmane.org>
In-Reply-To
<easqpi$o51$1@sea.gmane.org>
Jakub Narebski wrote:
Show 28 quoted lines
> Rocco Rutte wrote:
> 
>> However, when I do:
>> 
>>    $ git diff source:file dest:file
>> 
>> I get:
>> 
>>    --- a/source:file
>>    +++ b/source:file
>> 
>> But I'd like to drop the branchname. Can I do that without filtering 
>> everything through sed(1)?
> 
> If I remember correctly there were two patches which solved it 
> differently: 
>
> one gave 
> 
>    --- a/source:file
>    +++ b/dest:file
> 
> second (and I guess it is better solution)
> 
>    --- a/file
>    +++ b/file
> 
> Unfortunately they seem unapplied...
The patches are:
  http://www.gelato.unsw.edu.au/archives/git/0607/24325.html
  http://www.gelato.unsw.edu.au/archives/git/0607/24326.html
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Jakub NarebskiNext: Rocco Rutte
Message 3 of 6 in “Creating diffs”
  1. Rocco RutteAug 3, 2006
  2. Jakub NarebskiAug 3, 2006
  3. Jakub NarebskiAug 3, 2006
  4. Rocco RutteAug 3, 2006
  5. Junio C HamanoAug 3, 2006
  6. Junio C HamanoAug 3, 2006

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.