This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

The content on this page is partially outdated: GNOME has moved from git.gnome.org to gitlab.gnome.org. gitlab.gnome.org has a workflow with merge requests, see Git/Developers. Creating diffs (as covered below) is not needed anymore.

How To Submit Patches

Quick run-down of things that will make it more likely that your patch is accepted, and with minimum delay (in addition to the Apps/Dia/CodingGuidelines:

The best way to generate patches is to clone the public repository (the command is git clone git://git.gnome.org/dia my_working_copy unless you work in a graphical environment).  This is possible, of course, not only on Linux/Unix, but also on Windows with Cygwin, as well as on MacOS X.

Then see the documentation of git for git add, git commit, git format-patch, among others.

An alternative is to have two copies, up to date with the main repository of course, one pristine (let's call it dia-pristine) and one work area (let's call it dia-workarea), of the same tree.  Modify all files and test in the work area.  Then, make distclean in both trees.  Next, in the directory which contains both trees, do something like:

diff -urN dia-pristine dia-workarea >/tmp/some.patch
grep "^+++" /tmp/some.patch # check that no files have been unnecessarily
# touched, added or removed.
less /tmp/some.patch # check that patch is correct
gzip /tmp/some.patch

Send the patch as an attachment.  Don't send the same version of the patch twice on the list (when replying to yourself with updates...).  Keep large patches (> 5-40 kB) for private mails and/or in Bugzilla (URL in the mailing list is welcome, of course; small patches are okay, especially if some discussion on them is sought).

Much of the above is adapted from a mailing-list posting by Cyrille Chepelov.


2024-10-23 10:58