r/programming • • Jun 19 '14

Reinventing GIT interface

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

325 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jun 19 '14

What day-to-day action do you find hard to accomplish with Git? I'd love to hear an example of something that you do often enough to have this feeling about it.

0

u/loup-vaillant Jun 21 '14

git has a horrible interface.

What day-to-day action do you find hard to accomplish with Git?

Having a horrible interface doesn't necessarily makes things hard. More often, it makes them tedious. Some developers, most notably those with functional programming exposure¹, have very low tolerance for tedium.

[1] If one knows Darcs, one probably knows Haskell.

1

u/[deleted] Jun 21 '14

Ok, what's tedious?

0

u/loup-vaillant Jun 21 '14
$ git add .
$ git commit

I, know there's a shortcut. But why in the name of Cthulhu should we bother with an index? Maybe it's the best thing since sliced bread for you, but I personally pay for it even if I don't use it.

$ git log  c710f..7a37c
$ git diff c710f  7a37c

Wait, where are the dots? Why do I have to have dots in one command, and not in another? Why do I have to learn this special case?

Then there is how Git handles merges with push and pull. The default behaviours are sometimes surprising, and have to be worked around somewhat.

Then there are commands that can lose data when your working directory isn't clean, forcing you to use git stash explicitly. By the way, what is a stash? Looks like a commit, but stashes get their own special interface anyway. A bit like the index, actually…

You may think I'm picking nits, but they add up. Plus, I could think of those of the top of my head, and I hardly know Git myself. If I were an expert, I could probably find dozens more warts, special cases, inconsistencies, surprises…

Conclusion: Git has a horrible interface. Not because it makes Git hard to use¹, but rather because it could have been simpler, easier to discover, and less surprising, without sacrificing any power.