git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: pull into dirty working tree

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 13, 2007, 18:30 UTC
Message-ID
<Pine.LNX.4.64.0706131929020.4059@racer.site>
In-Reply-To
<18032.13176.649702.276044@lisa.zopyra.com>
Hi,
On Wed, 13 Jun 2007, Bill Lear wrote:
Show 7 quoted lines
> Not completely: they don't want to commit, as this will then "pollute"
> the history in their working repository (which is just temporarily
> being used to play with a new feature, idea, bug fix, optimization,
> etc.).  This pollution with a handful of garbage would then have to be
> undone were they to say "ok, that's really not a good idea".  If a
> pull into a dirty tree were possible, that last step could be just a
> simple reset, or continuing to explore with the code, etc.

Notice that I am _not_ saying that CVS is bad. I am saying that their workflow is likely bad (and yes, they should change that workflow, since they now _can_).

Two things do they risk happily, which they should not do:
- they test their new feature against different references. For example, 
  it might well be that they tested cases A, B, and C before pull, and D, 
  E and F after that. It is really easy to get lost in what you have, and 
  what not. Now, guess what. Merges are known to break things sometimes. 
  Even the best merge algorithm. Now your developers say "we tested it, 
  and the merge broke it, it's not our fault". But it is.
- That new feature will have to be committed at some stage. Either your 
  devs commit at the end, which makes it a monster commit, which is bad. 
  Or they are _already_ using the suggested workflow "commit && pull", 
  which makes your whole complaint moot.

Ciao, Dscho

Previous: Bill LearNext: Bill Lear
Message 5 of 8 in “Re: pull into dirty working tree”
  1. MichaelTiloDressel@t-online.deJun 13, 2007
  2. Bill LearJun 13, 2007
  3. Michael DresselJun 13, 2007
  4. Bill LearJun 13, 2007
  5. Johannes SchindelinJun 13, 2007
  6. Bill LearJun 13, 2007
  7. Robin RosenbergJun 13, 2007
  8. Johannes SchindelinJun 13, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.