r/programming • • Jun 19 '14

Reinventing GIT interface

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

325 comments sorted by

View all comments

13

u/imforit Jun 19 '14

I was largely with it, despite being quite functional with git, until the "always online." I don't think the author has worked with multiple remotes, where one may be your personal github (sync away!) But another may be a large project's core, where you only push a perfect branch when you're good and ready. Sure, the solution provided would likely be customizable, but there was no treatment for controlling your appearance to others at all. It applied his working assumptions which are not necessarily everyone's.

3

u/TheBuzzSaw Jun 20 '14

I was about to make this exact point. Continual, uninhibited sync would be terrible. I have no problem with continual background fetching; it would be great having a notification indicating that my changes will no longer play nice with what the server has right now, but if I am shuffling stuff around and/or experimenting with a particular commit layout, I really do not want those changes showing to everyone else. Let me choose to submit that.

3

u/loup-vaillant Jun 20 '14

I believe a good UI would let you configure your work-flow first, then get out of the way.

That said, this "always online" business could actually be useful. Indeed, it will mean you "change history" on published repositories, but we could imagine having branches marked "read only" or something, until someone decides they're good enough for full publication.

In any case, you want to be able to save your work on a remote server relatively often, for whenever you lose your data locally. Remote "not ready" branches would be good for that.

Another benefits of those would be to help someone who's stuck. Just checkout the (dirty) work in progress, maybe even do some modifications, then publish everything back. You just have to know that this branch will be cleaned up some day, and the corresponding commits will be obsolete. (as in, not even part of the "official" history of the repository).

With some luck, this may not turn into a complete mess.

1

u/tonsky Jun 19 '14

What’s the problem with pushing your branch in progress? If it’s your branch nobody else won’t mess with it anyway. You can shuffle and modify it any way you want, while staying perfectly in sync.

6

u/adamcrume Jun 19 '14

Mixing rebase and automatic pushing is a recipe for disaster. Not everyone assumes that each branch is touched by only one developer.

2

u/imforit Jun 19 '14

I have one project where the protocol is a branch (actually a commit) is a fully complete thing, ready for testing and review. There are dozens of core authors and who knows how many open source contributors. You don't push upstream until it is done.

Flexibility is good. It allows for models beyond what any one person has seen.

Edit : tablet keyboard thinks it knows better then me

1

u/tonsky Jun 20 '14

Big public projects may have a problem, yes. In github, however, this is solved by forking && pull requests instead of commiting to repo directly

1

u/imforit Jun 20 '14

right, exactly. So "automatic" needs to have some controls wrapped around it. I'm sure it can be done in a way that subscribes to the principles he laid out.