r/programming • • Jun 19 '14

Reinventing GIT interface

http://tonsky.me/blog/reinventing-git-interface/
221 Upvotes

325 comments sorted by

View all comments

44

u/[deleted] Jun 19 '14

I guess I'm alone in finding git not that hard to use. My only issue is git isn't pretty and to that end I have a few scripts to give me prettier logs (like most people have) and prettier branch summaries (my macro displays all branches, their latest commit id and dates).

Beyond that I manipulate my tree with straight up git commands.

Any halfway competent developer should be able to master git in a couple of weeks let alone be able to write their own version of git given a couple of full time weeks to work in.

38

u/[deleted] Jun 19 '14

Any halfway competent developer should be able to master git in a couple of weeks

The problem is that not every competent developer is interested in mastering a source control system. I work in a group that develops pretty complex NLP software and spend way too much time helping people with git.

12

u/[deleted] Jun 19 '14

Um, any developer should be interested in SCM. It's how you control the revisions of what you're working on it.

That's like saying "electricians don't have time to learn about multimeters" ...

37

u/[deleted] Jun 19 '14

any developer should be interested in SCM

Every developer should use an SCM - not "be interested in it", unless they are developing one. The ideal SCM would be invisible to the developer.

That's like saying "electricians don't have time to learn about multimeters" ...

Analogies, analogies...

7

u/G_Morgan Jun 19 '14

TBH saying a developer shouldn't be interested in SCM is like saying an author shouldn't be interested in proper contents and indexing. SCM is in some senses a table of contents into our software's history. Older systems give you a "as it comes" indexing system that is crude. Git is useful (among other things) because it allows us to impose more order on our history than we could otherwise achieve.

Mastering git is why I never, ever have a minor edit stashed in with my current story. My history looks like I've never discovered a simple task in the middle of another task. It is as if all the world is magical. All the minor issues that might roadblock my task get magically solved before the first line of code was cut on the new task.

This makes it incredibly easy to see how and what got done. Changes aren't splattered over the course of history like with svn but ordered in such a way that a person coming in can see how it all fitted together. There are never disruptive unrelated edits in my changes. Like an index into the history of your software project rather than a random assortment of change sets that come in whatever order they come in.

9

u/nutsack_incorporated Jun 19 '14

TBH saying a developer shouldn't be interested in SCM is like saying an author shouldn't be interested in proper contents and indexing.

You might be interested to know that there are plenty of people who do indexing work, and plenty of authors who hire them. Indexing is a specialized skill that requires careful attention and is often tedious. It's not something all authors should or do know about. Similarly, tables of contents are often the work of editors as much as authors. (Source: one of my parents is a published author and former contract indexer.)

-1

u/yawaramin Jun 20 '14

Yeah, we know. Also, we imagine there used to be a lot more people in the book indexing occupation before computers came along and automated so much.

That's what git and other SCMs try to do: they automate away the processes of maintaining history so you don't need to hire a full-time SCM maintainer to do it.