Re: How to Import a bitkeeper repo into git

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Monday, October 15, 2007 - 5:45 pm

On Mon, 15 Oct 2007, Pete/Piet Delaney wrote:

I can't see how bk's difftool could possibly have any relevance to the 
"reasonable to stick with CVS" decision, but hey, I'm always surprised by 
peoples inventiveness in rationalizing their decisions ;)

I don't know what difftool does that a simple

	git diff -U99 | viewdiff -

wouldn't do, but in all honesty, I don't think I ever used difftool (I 
found the other tools in bk much more useful - eg mergetool, renametool)

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. ]


Hmm. Converting from git to bk should not be that hard at least 
conceptually, but no, I have no idea how to script it sanely and 
efficiently. The obvious solutions all would want to have multiple active 
heads of development open at the same time (Larry calls them "LOD's" not 
branches), and would also require some way to set the result of a merge. 
Neither of which I would know how to do in BK (I created a lot of merges 
in BK, but I always let BK do the merging - I wouldn't know how to specify 
the merge result by hand).

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How to Import a bitkeeper repo into git, free cycle, (Mon Jul 9, 9:57 am)
Re: How to Import a bitkeeper repo into git, VMiklos, (Mon Jul 9, 10:37 am)
Re: How to Import a bitkeeper repo into git, Linus Torvalds, (Mon Jul 9, 10:51 am)
Re: How to Import a bitkeeper repo into git, Pete/Piet Delaney, (Mon Oct 15, 4:39 pm)
Re: How to Import a bitkeeper repo into git, Shawn O. Pearce, (Mon Oct 15, 5:03 pm)
Re: How to Import a bitkeeper repo into git, Pete/Piet Delaney, (Mon Oct 15, 5:41 pm)
Re: How to Import a bitkeeper repo into git, Linus Torvalds, (Mon Oct 15, 5:45 pm)
Re: How to Import a bitkeeper repo into git, David Brown, (Mon Oct 15, 6:12 pm)
Re: How to Import a bitkeeper repo into git, David Brown, (Mon Oct 15, 6:13 pm)
Re: How to Import a bitkeeper repo into git, Linus Torvalds, (Mon Oct 15, 6:22 pm)
Re: How to Import a bitkeeper repo into git, Pete/Piet Delaney, (Mon Oct 15, 8:45 pm)
Re: How to Import a bitkeeper repo into git, Marco Costalba, (Mon Oct 15, 9:56 pm)
Re: How to Import a bitkeeper repo into git, Pete/Piet Delaney, (Mon Oct 15, 11:05 pm)
Re: How to Import a bitkeeper repo into git, Marco Costalba, (Tue Oct 16, 2:11 am)
Re: How to Import a bitkeeper repo into git, Andreas Ericsson, (Tue Oct 16, 10:05 am)
Re: How to Import a bitkeeper repo into git, Jan Hudec, (Tue Oct 16, 12:15 pm)
Re: How to Import a bitkeeper repo into git, Linus Torvalds, (Tue Oct 16, 12:28 pm)
Re: How to Import a bitkeeper repo into git - Had a few qu ..., Pete/Piet Delaney, (Tue Oct 16, 10:02 pm)
Re: How to Import a bitkeeper repo into git, Pete/Piet Delaney, (Tue Oct 16, 10:22 pm)
Re: How to Import a bitkeeper repo into git, Marco Costalba, (Tue Oct 16, 11:57 pm)
Re: How to Import a bitkeeper repo into git, Marco Costalba, (Wed Oct 17, 12:14 am)
Re: How to Import a bitkeeper repo into git, Andreas Ericsson, (Wed Oct 17, 8:50 am)
Re: How to Import a bitkeeper repo into git, Pete/Piet Delaney, (Wed Oct 17, 2:47 pm)
Re: Qgit performance and maintain CVS environment with GIT ..., Pete/Piet Delaney, (Thu Oct 18, 4:41 pm)
Re: Qgit performance and maintain CVS environment with GIT ..., Johannes Schindelin, (Thu Oct 18, 5:00 pm)
Re: Qgit performance and maintain CVS environment with GIT ..., Pete/Piet Delaney, (Thu Oct 18, 5:22 pm)
Re: Qgit performance and maintain CVS environment with GIT ..., Johannes Schindelin, (Thu Oct 18, 5:50 pm)
Re: Qgit performance and maintain CVS environment with GIT ..., Andreas Ericsson, (Fri Oct 19, 12:14 am)
Re: Qgit performance and maintain CVS environment with GIT ..., Pete/Piet Delaney, (Fri Oct 19, 1:58 am)
Re: Qgit performance and maintain CVS environment with GIT ..., Pete/Piet Delaney, (Fri Oct 19, 2:12 am)