Re: Pulling one commit at a time.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthieu Moy
Date: Monday, August 24, 2009 - 1:41 am

skillzero@gmail.com writes:


See my other reply, but I really don't think you want to _merge_ one
commit at a time. This would not mean "test each commit" but "test the
interaction between any two commits", which few people would care
about.

The example above in SVN doesn't merge each commit, it just walks
history (assuming the history is linear, the example wouldn't be as
simple if it had to walk /branches/* too). To continue the analogy,
merging commits one by one in Git would be more or less the equivalent
in SVN of:

$ svn status
# Hmm, OK, I have stuff to commit.
$ test
# Yes, it works. But do my changes work too on top of the previous
# commits?
$ while ...; do
    svn update $(($cur_rev - 1))
    build
    test
  done
# If so, then
$ svn update
$ svn commit

That is: test the interaction between your new change with any other
changes in the repository. 'never seen anyone interested by such
thing, but why not ;-).

-- 
Matthieu
--
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:
Pulling one commit at a time., Sanjiv Gupta, (Sun Aug 23, 9:48 am)
Re: Pulling one commit at a time., Alex Riesen, (Sun Aug 23, 1:11 pm)
Re: Pulling one commit at a time., Adam Brewster, (Sun Aug 23, 1:17 pm)
Re: Pulling one commit at a time., Sam Vilain, (Sun Aug 23, 1:19 pm)
Re: Pulling one commit at a time., Nanako Shiraishi, (Sun Aug 23, 2:07 pm)
Re: Pulling one commit at a time., Junio C Hamano, (Sun Aug 23, 3:33 pm)
Re: Pulling one commit at a time., Sanjiv Gupta, (Sun Aug 23, 11:22 pm)
Re: Pulling one commit at a time., Kai Blin, (Mon Aug 24, 12:46 am)
Re: Pulling one commit at a time., Sanjiv Gupta, (Mon Aug 24, 12:55 am)
Re: Pulling one commit at a time., Sean Estabrooks, (Mon Aug 24, 1:20 am)
Re: Pulling one commit at a time., Erik Faye-Lund, (Mon Aug 24, 1:20 am)
Re: Pulling one commit at a time., Erik Faye-Lund, (Mon Aug 24, 1:22 am)
Re: Pulling one commit at a time., Matthieu Moy, (Mon Aug 24, 1:28 am)
Re: Pulling one commit at a time., skillzero, (Mon Aug 24, 1:33 am)
Re: Pulling one commit at a time., Matthieu Moy, (Mon Aug 24, 1:41 am)
Re: Pulling one commit at a time., David Aguilar, (Mon Aug 24, 3:22 am)
Re: Pulling one commit at a time., Sanjiv Gupta, (Mon Aug 24, 3:49 am)
Re: Pulling one commit at a time., Matthieu Moy, (Mon Aug 24, 4:07 am)
Re: Pulling one commit at a time., Avery Pennarun, (Mon Aug 24, 11:19 am)
Re: Pulling one commit at a time., Sanjiv Gupta, (Mon Aug 24, 12:08 pm)