If you feel like contributing to this project, here are a few suggestions.
Just use it! And afterwards let us know how you like it. Send your bug reports, feature requests, suggestions or just your personal opinion to our mailing list. You can file a bug to our bug tracker as well – but maybe you want to discuss it first (on IRC or mailing list).
If you found a bug or managed to crash darktable, please submit a helpful backtrace! Instructions are below.
If you want to translate darktable into your language (in case it didn’t already happen) we have a short introduction how to do that. You can find that file in our git repository, it’s called TRANSLATORS.md.
You can find a list of the currently included languages on the features page.
You can help us by providing a color matrix for your specific camera. Color matrices are specifications on how camera native color is transformed into something that an end user might like, and ideally will be correct when viewed on a calibrated display. Read more about this in Pascal’s detailed blog post or watch his screencast.
Write image operation modules! Submit patches! Help to track down bugs by supplying backtraces!
Pascal recorded a detailed screencast describing the procedure. For convenience here are the minimal steps:
$ cmake .. $ make && sudo make install $ gdb darktable ... crash dt here ... (gdb) set pagination off (gdb) set logging file gdb.txt (gdb) set logging on (gdb) thread apply all bt full
Post the backtrace written to
gdb.txt along with your bugreport. Or even better: Try a few prints and figure out what seems to be the problem. Best: Fix it and supply a patch!
First of all you have to clone the repository, so create a folder somewhere and cd into it. Then clone the source code by typing:
$ git clone git://github.com/darktable-org/darktable.git $ cd darktable
Secondly, you really should put your name and email in your .git/config, so it will appear in darktable’s git log:
$ git config --global user.name "alfons" $ git config --global user.email "email@example.com"
We have several different branches in our repository. Most of them are either branches for new major features that have to mature before they can go into the master branch or personal branches for developers.
If you plan to make major changes, code new features or add another module it’s best to discuss them first (on IRC or the development mailinglist, see here for more information). This has several advantages:
For bug fixes and “minor” enhancements (minor mostly in terms of code and complexity) you should always work on our master branch. This is the main developing branch for darktable and the one to become the next major release version. If your patch is also valuable for the currently maintained stable branch (so darktable-2.4.x) it will be cherry-picked to that branch by one of the developers (make sure to remind us if we forget to do so). This applies mostly to bug fixes and small usability enhancements (like a changed sorting order of list items, for example).
Supplied patches will always be reviewed by a core developer. “Review” does not mean a formal process but more a “that patch looks okay to me, I push it …”. In most cases you will be informed whether your patch has been pushed to the main repository or not. In the latter case you should get information on why we didn’t want your patch and what to change so you can get it pushed. Please be patient if your patches don’t get reviewed immediately, we are all quite busy (and darktable is a spare time project for all of us). If you hear nothing for two weeks you might want to bump us again – some things do just get lost in a flood of emails.
To work in the master branch you have switch to this branch with
$ git checkout master
If you want to contribute fixes which are specific to another branch (let’s say you’re working on geolocation) checkout that specific branch first. You can print a list of all available branches with
$ git branch -a # List all branches $ git branch -r # List remote branches only $ git checkout geo
If you want to play with the code, or occasionally want to supply small patches, you should create a local branch from the one you want to work on (here: master)
$ git checkout master $ git checkout -b mybranch
Your personal local branch can be updated using
$ git pull $ git checkout mybranch $ git rebase master
Small patches can be sent through the mailing list or attached to a ticket in the bug tracker. If you send them to the mailing list please make sure to attach them as MIME attachment, not inline. That makes it easier to apply the patch. If you are working with a cloned repository on github you just can commit your changes to your github repository and notify us about them by sending a pull request. To get formatted patches from your (local) branch against the original branch do:
$ git checkout mybranch $ git format-patch origin/master
Note: git format-patch writes your preferred or detected name and email address in the From: line of the patch. This is why it’s good to have your preferred username and email in your .git/config file.
Supplying a patch from your local branch to current, possibly changed master branch:
$ git checkout -b mybranch # ... make your important changes ... $ git commit -a $ git pull $ git rebase master $ git format-patch origin/master
[git format-patch will create a file named similarly to 0001-First-Line-of-Commit-comment in your current directory unless you specify