login
Header Space

 
 

Re: git pull opinion

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: Aghiles <aghilesk@...>, <git@...>
Date: Monday, November 5, 2007 - 8:37 pm

On Nov 5, 2007, at 3:33 PM, Junio C Hamano wrote:


I don't think wanting to pull in the middle of one's work has anything  
to do with centralized vs. decentralized, actually, though I do agree  
that it's a question of workflow.

For maybe 80% of my work, I do things "the git way" (lots of little  
local commits) and only sync up with other people when I've reached a  
good stopping point. Those are cases where I'm working in isolation on  
a new feature or a fix and will publish it as a whole unit when I'm  
done.

But the other 20% of the time, I'm working closely with another  
person. For example, I might be working with a front-end developer who  
is writing some nice snazzy JavaScript or Flash UI code to talk to my  
server-side code. And in that case, I really do want to be able to  
pull down his latest changes while I'm still in the middle of working  
on my own stuff, not least because it's only by testing with the real  
client -- where the button to invoke a particular piece of code on my  
side has just been added in the last 2 minutes -- that I can decide  
whether my work in progress is actually functional or not. (Unit tests  
only get you partway there.)

In other words, for traditional open-source-style distributed  
development where each repository is an isolated island that goes off  
and does its own thing, ignoring the outside world, the recommended  
git workflow is totally appropriate. It's also appropriate for a lot  
of in-house non-distributed development.

But for some classes of collaboration, where two or more people are  
essentially editing the same code base to work on the same feature and  
their changes are highly interdependent, that workflow is next to  
useless. There *is* no "I've gotten my code working and am ready to  
look at other people's changes now" stage until pretty late in the  
game. This kind of workflow happens a lot in commercial development in  
my experience.

Before git-stash, I did a lot of "commit; fetch; rebase; reset"  
sequences to support this kind of tight collaboration. Now it's  
"stash; fetch; rebase; unstash" which is the same number of commands  
but is semantically clearer. "fetch; rebase --dirty" or "pull --dirty - 
s rebase" will be nicer.

-Steve
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git pull opinion, Aghiles, (Mon Nov 5, 5:52 pm)
Re: git pull opinion, Junio C Hamano, (Mon Nov 5, 7:33 pm)
Re: git pull opinion, Aghiles, (Tue Nov 6, 12:04 am)
Re: git pull opinion, Steven Grimm, (Mon Nov 5, 8:37 pm)
Re: git pull opinion, Bill Lear, (Mon Nov 5, 8:36 pm)
Re: git pull opinion, Andreas Ericsson, (Mon Nov 5, 8:54 pm)
Re: git pull opinion, Johannes Schindelin, (Mon Nov 5, 9:16 pm)
Re: git pull opinion, Andreas Ericsson, (Tue Nov 6, 4:59 am)
Re: git pull opinion, Johannes Schindelin, (Tue Nov 6, 8:05 am)
Re: git pull opinion, Andreas Ericsson, (Tue Nov 6, 8:08 am)
Re: git pull opinion, Aghiles, (Tue Nov 6, 2:30 am)
Re: git pull opinion, Linus Torvalds, (Tue Nov 6, 12:36 pm)
Re: git pull opinion, Aghiles, (Wed Nov 7, 5:25 pm)
Re: git pull opinion, Linus Torvalds, (Fri Nov 9, 8:36 pm)
Re: git pull opinion, Johannes Schindelin, (Thu Nov 8, 11:27 am)
Re: git pull opinion, Alex Riesen, (Tue Nov 6, 3:40 am)
Re: git pull opinion, Pierre Habouzit, (Mon Nov 5, 8:46 pm)
Re: git pull opinion, Alex Riesen, (Tue Nov 6, 3:38 am)
Re: git pull opinion, Pierre Habouzit, (Tue Nov 6, 4:31 am)
Re: git pull opinion, Pascal Obry, (Tue Nov 6, 2:07 pm)
Re: git pull opinion, Uwe , (Wed Nov 7, 3:06 am)
Re: git pull opinion, Pascal Obry, (Wed Nov 7, 3:40 am)
Re: git pull opinion, Miklos Vajna, (Mon Nov 5, 7:40 pm)
Re: git pull opinion, Aghiles, (Tue Nov 6, 12:16 am)
Re: git pull opinion, Benoit Sigoure, (Tue Nov 6, 1:29 am)
Re: git pull opinion, Aghiles, (Tue Nov 6, 3:45 am)
Re: git pull opinion, Pierre Habouzit, (Tue Nov 6, 4:51 am)
[PATCH] Mark 'git stash [message...]' as deprecated, Brian Downing, (Tue Nov 6, 8:26 pm)
Re: [PATCH] Mark 'git stash [message...]' as deprecated, Pierre Habouzit, (Wed Nov 7, 4:23 am)
Re: [PATCH] Mark 'git stash [message...]' as deprecated, Junio C Hamano, (Wed Nov 7, 4:02 am)
Re: [PATCH] Mark 'git stash [message...]' as deprecated, Johannes Sixt, (Wed Nov 7, 4:00 am)
Re: [PATCH] Mark 'git stash [message...]' as deprecated, Wincent Colaiuta, (Wed Nov 7, 4:12 am)
Re: git pull opinion, Ralf Wildenhues, (Tue Nov 6, 3:34 am)
Re: git pull opinion, Johannes Schindelin, (Tue Nov 6, 7:59 am)
Re: git pull opinion, Ralf Wildenhues, (Tue Nov 6, 4:22 pm)
Re: git pull opinion, Alex Riesen, (Mon Nov 5, 6:49 pm)
speck-geostationary