Create and apply patch support

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Create and apply patch support

David Rodrigues

 

 I like to know if currently is possible create and apply patches. It can be very useful if you have copies of same project and would like to apply some important fixes to all. If it does not exists, I suggest it:

 
Creating patch file:
1. First you open your repository log (or use the "outgoing" tab) and: select two commits to diff patch between both, select only one commit to diff patch with previous (parent), select one branch to diff patch with parent branch;
2. Now right-click and select something like "Create a patch file...". Will open a "save as" dialog and you specify where will save the patch. After that, patch will generated. Done.

Applying patch file:
1. If you have a patch file, go to menu Local or Branch, and click at "Apply patch file..." and you select your patch to apply. Done.

References:
- http://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/ http://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/
- https://www.kernel.org/pub/software/scm/git/docs/git-format-patch.html https://www.kernel.org/pub/software/scm/git/docs/git-format-patch.html
 - http://git-scm.com/docs/git-diff http://git-scm.com/docs/git-diff

 

 Copy from: http://smartgit.3668570.n2.nabble.com/Create-and-apply-patch-support-td7574827.html http://smartgit.3668570.n2.nabble.com/Create-and-apply-patch-support-td7574827.html
Reply | Threaded
Open this post in threaded view
|

Re: Create and apply patch support

syntevo Support
Hi David,

Currently, it is not possible with SmartGit to create and apply patches (though these feature requests exist in our issue tracker). Why do you need them? Could you please sketch your work-flows? Thanks in advance.

--
Best regards,
Thomas Singer
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com


04/28/2014 05:40 -  wrote:

>
>  
>
>  I like to know if currently is possible create and apply patches. It can be very
> useful if you have copies of same project and would like to apply some important
> fixes to all. If it does not exists, I suggest it:
>
>  
> Creating patch file:
> 1. First you open your repository log (or use the "outgoing" tab) and: select two
> commits to diff patch between both, select only one commit to diff patch with
> previous (parent), select one branch to diff patch with parent branch;
> 2. Now right-click and select something like "Create a patch file...". Will open a
> "save as" dialog and you specify where will save the patch. After that, patch will
> generated. Done.
>
> Applying patch file:
> 1. If you have a patch file, go to menu Local or Branch, and click at "Apply patch
> file..." and you select your patch to apply. Done.
>
> References:
> - http://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/
> http://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/
> - https://www.kernel.org/pub/software/scm/git/docs/git-format-patch.html
> https://www.kernel.org/pub/software/scm/git/docs/git-format-patch.html
>  - http://git-scm.com/docs/git-diff http://git-scm.com/docs/git-diff
>
>  
>
>  Copy from:
> http://smartgit.3668570.n2.nabble.com/Create-and-apply-patch-support-td7574827.html
> http://smartgit.3668570.n2.nabble.com/Create-and-apply-patch-support-td7574827.html
>
Reply | Threaded
Open this post in threaded view
|

Re: Create and apply patch support

David Rodrigues
I work with some duplicates projects, and sometimes I need update feature on all. For instance:

 - PM - Project Master
 - PC1 - Project Clone #1
 - PC2 - Project Clone #2
 - PC3M - Project Clone #3 (with Modifications)
 

 Except PC3M, I can just update PM and copy all changed files to PC1 and PC2. But if I need update PC3M I need create a patch from changes to apply. It'll help a lot, but I really consider that not is a high priority issue, at least for me, I do not have so many duplicates.