Skip to main content
AFido.1
Associate
December 21, 2020
Solved

How to import a .patch file

  • December 21, 2020
  • 3 replies
  • 2490 views

Hello all,

I have received a .patch file (modification) for a SourceCode. How do I import this file directly to my SourceCode without manually changing the line changes described in it in the SourceCode. Is there a way to simply import this .patch file and the adjustment happens automatically?

Thanks for your feedback.

This topic has been closed for replies.
Best answer by Cartu38 OpenDev

Both proposal here.

Either rely on a terminal and play with common git batch commands (git amend <patch file>).

Or add integrated git support to STM32CubeIDE relying on Eclipse market place (Help>Eclipse Market Place)

0693W000006GS63QAG.jpg 

Some new project contextual menu so called "Team" is then available to you allowing full GIT management

0693W000006GS6mQAG.jpg

3 replies

KnarfB
Super User
December 21, 2020

The native way is applying the patch command from a (linux) command line.

Cartu38 OpenDev
Cartu38 OpenDevBest answer
Graduate II
December 21, 2020

Both proposal here.

Either rely on a terminal and play with common git batch commands (git amend <patch file>).

Or add integrated git support to STM32CubeIDE relying on Eclipse market place (Help>Eclipse Market Place)

0693W000006GS63QAG.jpg 

Some new project contextual menu so called "Team" is then available to you allowing full GIT management

0693W000006GS6mQAG.jpg

AFido.1
AFido.1Author
Associate
December 21, 2020

Thank you very much Cartu38 OpenDev. It works perfectly!

Cartu38 OpenDev
Graduate II
December 21, 2020

Please mark as answered will help community to dig into valuable material more easily.

AFido.1
AFido.1Author
Associate
December 21, 2020

I cannot "mark" this Topic as answered. I don't have any buttons like "Mark correct" or "helpful yes/no?"

@ST Member:

Please mark this topic as "answered"