If you feel like contributing to this project, here are a few suggestions.
...in terms of testing:
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.
...in terms of translations:
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.
You can find a list of the currently included languages on the features page.
...a color matrix for your camera:
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!
How to produce a backtrace:
Pascal recorded a detailed screencast describing the procedure. For convenience here are the minimal steps:
$ make && sudo make install
$ gdb darktable
..crash dt here..
(gdb) thread apply all bt full
Post this backtrace 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!
How do I start working on darktable using git?
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:
$ 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.email "firstname.lastname@example.org"
What do I need to know to contribute code?
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:
- You can be sure we like your idea and are willing to include this in darktable (because we don't want some features others might find useful...)
- You can get information about work-in-progress - maybe we already started with that feature in some branch but can't finish it for some reason (lack of time is frequently mentioned)
- We know about you coding that specific feature and can help if you have questions.
- Especially for the "I want to contribute a new module" case: we don't like cluttering darktable with 100s of modules with just one use case. Most of our modules are so powerful that you can't determine the full functionality at a glance. So maybe your feature already exists?
Now, tell me how to contribute patches...
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-1.0.x) it will be cherry-picked to that branch by one of the developers (Pascal usually takes care of this). 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
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 -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 -b mybranch
Your personal local branch can be updated using
$ 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 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.
So again: supplying a patch - fast forward
Supplying a patch from your local branch to current, possibly changed master branch:
# ..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 -t /path/to/write/to].