[hibernate-dev] Applying commits from 3.6 to master

Adam Warski adam at warski.org
Fri Oct 29 14:19:51 EDT 2010


I'll report the first time I'll have to do that.

Adam

On Oct 29, 2010, at 8:11 PM, Steve Ebersole wrote:

> Curious what happens if you go the other direction (imho the more natural 
> direction)?  Working from master to the 3.6 branch...
> 
> 
> On Friday, October 29, 2010, at 01:02 pm, Adam Warski wrote:
>> After some tries, here's my workflow for applying commits from the 3.6
>> branch to the master branch: 1. Commit to 3.6 :)
>> 2. Create patches for the commits using git format-patch commit sha/range
>> etc. This will produce numbered patches. 3. Switch to master
>> 4. Modify the patches using the following script:
>> 
>> #!/bin/bash
>> for file in $*
>> do
>>        sed 's/\/envers\//\/hibernate-envers\//' < $file > mod_$file
>> done
>> 
>> (substitute envers with the appropriate module)
>> 
>> 5. Apply the patches using git am <file>
>> 6. Done
>> 
>> Not very straightforward, but works. And maybe somebody will find a better
>> way :)
> 
> ---
> Steve Ebersole <steve at hibernate.org>
> http://hibernate.org

-- 
Adam Warski
http://www.warski.org
http://www.softwaremill.eu







More information about the hibernate-dev mailing list