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, 12:39 UTC
Message-ID
<easqpi$o51$1@sea.gmane.org>
In-Reply-To
<20060803122937.GI5016@robert.daprodeges.fqdn.th-h.de>
Rocco Rutte wrote:
Show 11 quoted lines
> 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...
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Rocco RutteNext: Jakub Narebski
Message 2 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.