Re: Pulling one commit at a time.
- From
- skillzero@gmail.com <skillzero@gmail.com>
- Date
- Aug 24, 2009, 08:33 UTC
- Message-ID
- <2729632a0908240133t12eaafd5oe8d50af6d6eec566@mail.gmail.com>
- In-Reply-To
- <4A92476A.4060205@microchip.com>
On Mon, Aug 24, 2009 at 12:55 AM, Sanjiv Gupta<sanjiv.gupta@microchip.com> wrote:
Show 13 quoted lines
> What I would like is to "test *every* commit" available in the public > master. There would be no local changes or commits that aren't pushed in the > private copy. > So I just want to clone one copy from the public master and then just keep > pulling commits from the public master one by one and run regressions on > each one. > > It's a damn simple thing in SVN world. > $ svn info will give you the current version you are at, assume it is > "cur_rev" > $ svn update -r `expr $cur_rev + 1` > $ build > $ test
I'm not sure if this is the best way, but you can use git fetch to get the latest stuff from the server without merging it then you can merge from origin/master (i.e. the server) into your local master, one commit at a time, and verify at each step:
$ git merge `git log --format=%h master..origin/master | sed '$!d'` $ build $ test