Talk:Creating a patch

How to create a patch?
What I am missing here is a simple example how to do it. Something like:

--- Begin ---

If souce code is provided as a git repository, get and unpack it:

Step into the git repository just created:

Modify some file, e.g

Let git diff display the difference (works very nice even if more or many files were modified):

Save the differences into a file:

--- END ---

Git will do it all (almost).--Charles17 (talk) 14:30, 31 July 2017 (UTC)


 * In case the source code is not providing a git repository, see User:Charles17/cheat_sheet. But that example needs to get much more text explaining it. --Charles17 (talk) 08:00, 1 August 2017 (UTC)

TortoiseGit and Git for Windows
As the main section header is called "Creating patches": How could a Gentoo user create patches with those tools which both seem not being available on Gentoo?--Charles17 (talk) 18:28, 31 July 2017 (UTC)


 * Just renamed that section.--Charles17 (talk) 13:46, 1 August 2017 (UTC)

Sync with devmanual
We should sync this with the guidance in the devmanual.

Sam (talk) 07:20, 15 March 2021 (UTC)


 * Duplicate devmanual's content here? It's already mentioned 2nd reference in External resources.
 * --Charles17 (talk) 07:53, 15 March 2021 (UTC)


 * Not duplicate, but make clear that tidy patches should drop some of the git metadata.
 * --Sam (talk) 07:57, 15 March 2021 (UTC)


 * No clue.
 * And, I doubt those patches as written in Devmanual would apply under EAPI 7 as so often people have to replace
 * with
 * --- a/
 * +++ b/
 * --Charles17 (talk) 08:19, 15 March 2021 (UTC)
 * +++ b/
 * --Charles17 (talk) 08:19, 15 March 2021 (UTC)