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

Re: How to Import a bitkeeper repo into git

From
JHJan Hudec <bulb@ucw.cz>
Date
Oct 16, 2007, 19:15 UTC
Message-ID
<20071016191549.GG26127@efreet.light.src>
In-Reply-To
<alpine.LFD.0.999.0710151711280.6887@woody.linux-foundation.org>
On Mon, Oct 15, 2007 at 17:45:44 -0700, Linus Torvalds wrote:
Show 16 quoted lines
> I don't actually know of any sane programs to view unified diffs, but you 
> can script one with little trouble. Here's a really hacky one I just came 
> up with:
> 
> 	#!/bin/sh
> 	cat "$@" > /tmp/diff
> 	grep '^[ -]' /tmp/diff > /tmp/orig
> 	grep '^[ +]' /tmp/diff > /tmp/result
> 	meld /tmp/orig /tmp/result
> 
> which fools 'meld' into showing a unified diff in a nice graphical manner.
> 
> [ Quite frankly, I don't understand why tools like meld and kdiff3 can't 
>   just take the unified diff directly - they have *all* the logic, it 
>   should be trivial to do, and very useful to view diffs for those people 
>   who like that graphical bling. ]
Kompare (KDE analog of meld) can. It is even bound to text/x-diff in
konqueror, so opening patches with konqueror yields side-by-side diff view.
On the other hand it still keeps a unixy behaviour:
 git diff | kompare -
works.
-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: Andreas EricssonNext: Linus Torvalds
Message 37 of 39 in “How to Import a bitkeeper repo into git”
  1. free cycleJul 9, 2007
  2. VMiklosJul 9, 2007
  3. Linus TorvaldsJul 9, 2007
  4. Pete/Piet DelaneyOct 15, 2007
  5. Shawn O. PearceOct 16, 2007
  6. Pete/Piet DelaneyOct 16, 2007
  7. David BrownOct 16, 2007
  8. Linus TorvaldsOct 16, 2007
  9. David BrownOct 16, 2007
  10. Linus TorvaldsOct 16, 2007
  11. Pete/Piet DelaneyOct 16, 2007
  12. Marco CostalbaOct 16, 2007
  13. Pete/Piet DelaneyOct 16, 2007
  14. Marco CostalbaOct 16, 2007
  15. Andreas EricssonOct 16, 2007
  16. Marco CostalbaOct 17, 2007
  17. Andreas EricssonOct 17, 2007
  18. Pete/Piet DelaneyOct 17, 2007
  19. Marco CostalbaOct 17, 2007
  20. Pete/Piet DelaneyOct 17, 2007
  21. Pete/Piet DelaneyOct 17, 2007
  22. Marco CostalbaOct 17, 2007
  23. Robin RosenbergOct 17, 2007
  24. Marco CostalbaOct 17, 2007
  25. Robin RosenbergOct 18, 2007
  26. Pete/Piet DelaneyOct 18, 2007
  27. Johannes SchindelinOct 19, 2007
  28. Pete/Piet DelaneyOct 19, 2007
  29. Jeff KingOct 19, 2007
  30. Johannes SchindelinOct 19, 2007
  31. Jan WielemakerOct 19, 2007
  32. Pete/Piet DelaneyOct 19, 2007
  33. Jan WielemakerOct 19, 2007
  34. Andreas EricssonOct 19, 2007
  35. Pete/Piet DelaneyOct 19, 2007
  36. Andreas EricssonOct 19, 2007
  37. Jan HudecOct 16, 2007
  38. Linus TorvaldsOct 16, 2007
  39. Johannes SchindelinNov 6, 2007

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.