Re: Pulling one commit at a time.
- From
Erik Faye-Lund <kusmabite@googlemail.com>
- Date
- Aug 24, 2009, 08:20 UTC
- Message-ID
- <40aa078e0908240120o36004f78m52aa34c8a338854c@mail.gmail.com>
- In-Reply-To
- <4A92476A.4060205@microchip.com>
On Mon, Aug 24, 2009 at 9:55 AM, Sanjiv Gupta<sanjiv.gupta@microchip.com> wrote:
Show 6 quoted lines
> 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 guess you could do it something like this. Unlike your example, this processes all new commits, not just the next one.
$ git fetch origin master $ for c in $(git rev-list HEAD..FETCH_HEAD); do $ git checkout $c $ build $ test $ done $ git merge FETCH_HEAD
-- Erik "kusma" Faye-Lund kusmabite@gmail.com (+47) 986 59 656