r/programming • • Jun 19 '14

Reinventing GIT interface

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

325 comments sorted by

View all comments

6

u/kazagistar Jun 19 '14

I was with the author most of the way, but two things bothered me a bit:

  • "Instant sync" removes some of the ability to restructure or reorder your commits before making them public, which is a part of many people's workflow.

  • The advantage of having a command line interface is ease of automation. Having your UI be a server is fine for remote access, but it makes it much harder to take part of your workflow and just toss it in a shell script.

5

u/tonsky Jun 19 '14

Instant sync does not removes ability to restructure and reorder. Other people will see your branch in-progress, but then they’ll automatically see how you restructured and prettified it.

I believe Git is a human tool, not a system-level service. Nevertheless, automation is left for the CLI interface, as repos are fully compatible.

2

u/kazagistar Jun 19 '14

So they can see, but they cannot branch from it? The reason you dont mutate pushed changes is because someone else might use the history, and it would break either his, or your code to change history.

2

u/tonsky Jun 19 '14

With auto-sync, this is handled better — you’ll actually see if somebody have already used your branch or not. But in practice, you do not start using someone else branch “just because”, you usually have some informal communication before that. This is not different from normal Git usage

1

u/kazagistar Jun 20 '14

Saying "normal git usage" is your hint that you are prescribing a model of usage.

1

u/tonsky Jun 20 '14

I meant “normal Git” as in “Classical Git CLI”

1

u/TheBuzzSaw Jun 20 '14

No point. Why continue auto-sync if I'm busy experimenting or whatever? I don't want people to see my experimentation. If this mythical Git UI were to materialize, I would not use it if there was not some way to disable the auto-sync.

1

u/tonsky Jun 20 '14

No point. Why continue auto-sync if I'm busy experimenting or whatever? I don't want people to see my experimentation. If this mythical Git UI were to materialize, I would not use it if there was not some way to disable the auto-sync.

There’s no problem for other people to see your work-in-progress but in your head. There’s, however, a huge usability win by removing manual sync step. You have nothing to do once you done. It simplifies things a lot.

1

u/TheBuzzSaw Jun 21 '14

Yes. That's how you win people over: "Your concern is 100% imaginary, and it shall be disregarded."

I can think of many reasons I would not want people to see my progress. At the most basic level, it's just not any of anyone else's business. The fact that you refuse to acknowledge it just means the potential audience for this awesome new GUI will be that much smaller. I'm not the only one in this thread who expressed this concern.

Half the reason I love Git is its support for working locally. If you want continual auto sync, please, go back to SVN.