Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it easier to manage code with Git or Bazaar? [closed]

Tags:

I'm researching the Git and Bazaar capabilities and wonder which one has more feature-rich code management?

like image 492
Roman Kagan Avatar asked Jun 18 '09 03:06

Roman Kagan


People also ask

Is git a source code management tool?

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance.

What is git mercurial?

GIT. Mercurial is a distributed revision control tool for software developer and it support Microsoft window. Git is distributed system which track the change in source code in which each developer has his repository.


2 Answers

I suppose you also read Bazaar vs. Git article, but in the end, it all comes down to what you are looking for in term of "feature-rich code management".

  • If, by code management, you are referring to file (and directories and renaming), go with Bazaar.

  • If, by code management, you are looking at content management, Git is designed to manage just that (the staging area, for instance, allows you to record what current content you want to commit, even though you have already begun to make some large modification you end up not wanting to commit in the current branch)

To be sure, re-read Linus's original vision for Git (back in April 2005). If you do agree with it, chances are Git will deliver what you want. In short:

  • very simple model (blob-tree-commit-tag)
  • no metadata added (for tracking renaming for instance)
  • "strong" principles like:
    • "files" do not matter. The only thing that matters is how "content" moved in the tree
    • You have an SCM that tracks what changed at the only level that really matters, namely the whole project. None of the information actually makes any sense at all at a smaller granularity, since by definition, a "project" depends on the other files, or it wouldn't be a project

That "all project" notion is actually a strength and a limit for Git in term of project management: you should not seek to put everything into one Git repository.

like image 117
VonC Avatar answered Oct 20 '22 00:10

VonC


It's going to come down to personal preference, plain and simple.

I use Bazaar and find it extremely easy. The staging area concept in Git gives some nice flexibility but it also adds complexity. You can quite easily manage code in Bazaar with something like 4 commands (add, commit, merge (maybe push/pull) and log or qlog), and you only need merge if you want multiple branches.

Usually Bazaar seems to do the right thing. I've never really had a problem with it doing something stupid or letting me do something stupid.

like image 42
Instance Hunter Avatar answered Oct 20 '22 00:10

Instance Hunter