Categories
Computers

In Git, Branches Are Just Names

This was the mental leap of the day for me. A small leap, but a cool one (for me):

  1. Git represents commits in the repository as a Directed Acyclic Graph
  2. A branch in Git is just a pointer to a node in that graph.
  3. Master is just another branch and as such, it’s just a pointer into the graph.
  4. Once you’re done working in a branch and the work has been merged back into master, there’s no need to keep the branch label around. The story of how the commit happened is still in the DAG.
  5. “Deleting” a branch is really just removing that pointer into the DAG. Therefore, it’s safe to delete branches that have been merged back into some other line of development.

Whereas in the other SCMs I’ve used (Perforce, Subversion), branches are usually seen more as a copy of some set of a tree into a new namespace or directory. For example, in svn you generally cp your trunk into someting under /branches/, like /branches/awesome-feature, and then merge your changes back in later. If you then delete that branch to clean up your branches folder, you pretty much lose that hunk of history. Furthermore, svn doesn’t really deal well with the branched history when showing the change history for a file in trunk futher down the road. With Git and gitk, you can easily see the branch and merge points and figure out what changed when.

Categories
Etc

Home Sweet Home

A view down a reference table in the Grad
A view down a reference table in the Grad

I’m back in Manchester / Ann Arbor till the 29th for a family wedding (congrats to Jenn & Matt!), working in my favorite of workplaces, the Grad’s reference room. Ann Arbor is predictably quiet in the summer, especially this being the week after Art Fair; it seems that there’s no one in town except the orienteers.

Mandy, Jack and I are staying in Manchester, but if anyone who’s still in the area wants to get together, leave a comment…

Categories
Food Shopping

KitchenAid Pro 600 Mixer for $290

kitchenaid-600-red

Amazon is running a great sale on the KitchenAid Professional 600 Series 6-Quart Stand Mixers for today only. It appears only certain colors are included in the sale: Nickel Pearl, Empire Red, Licorice & Meringue; choose carefully.

Update: The sale is over, but there’s often a substantial price break on certain colors. Check with Amazon to see the various options. The little preview you get when hovering on links here lists the price as $499, but that’s just retail. It’s usually much less.

We love our now-discontinued KitchenAid mixer (the old Williams-Sonoma model just above the current Artisan), but sometimes a bit more power and a bit bigger bowl would be nice…

Categories
Etc

Dr. Horrible. Catch it while you can…

Dr. Horrible's Sing-Along Blog

A new project from Joss Whedon (Buffy / Firefly / etc ). Highly, highly recommended. Catch it while you can; the videos are going dark at midnight, Sunday the 20th. After that, they’ll be available for download for a fee (iTunes?) and eventually there will be a DVD.

Categories
Family

Three Years & Counting

On Wednesday, Mandy & I celebrated our third wedding anniversary with a baby-sitter and a night out at Max London’s. The food was wonderful as always, as was the company. It’s been a crazy, wonderful three years and wouldn’t trade a minute of it for anything.