Re: Pushing into a repository with working directory?
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 9, 2007, 13:51 UTC
- Message-ID
- <Pine.LNX.4.63.0701091449320.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <45A35D30.3070305@op5.se>
Hi,
On Tue, 9 Jan 2007, Andreas Ericsson wrote:
Show 10 quoted lines
> Shawn O. Pearce wrote: > > > > Pushing into the current branch of a repository with a working > > directory probably shouldn't be allowed by default as users probably > > don't want to do that. > > > I do this all the time. I develop on my laptop and send changes to a > testserver where I check out the revision I just pushed to the working > directory attached to it.
This is still possible. I also do it all the time. Only I do not update the _current_ branch, but a throwaway one.
> Since we can determine if there's a working directory or not, why not > just allow the fast-forward case if the working directory is clean and > update the working directory for the user?
Because maybe that user could be working on them right now?
The behaviour is safe as is.
Ciao, Dscho