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/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.