summaryrefslogtreecommitdiff
path: root/ConfigFile.py
AgeCommit message (Collapse)AuthorFilesLines
2013-07-18Look in confdir for the main config file if the initial open failsJonathan Corbet1-1/+4
Thanks to Andreas Bießmann <andreas.biessmann@corscience.de> for the idea and an earlier version of the change.
2011-07-11Revert "Make ReadConfigLine an iterator"Jonathan Corbet1-72/+41
This reverts commit 19b718ef41f87f348ac45a90a5c4096ccbd0f7db which breaks the virtual employer mechanism.
2011-06-24Make ReadConfigLine an iteratorGermán Póo-Caamaño1-41/+72
Using an iterator makes the code a bit more 'pythonic'. Signed-off-by: Germán Póo-Caamaño <gpoo@gnome.org>
2011-06-24Move filetypes onto configuration fileGermán Póo-Caamaño1-0/+40
The filetypes can be extended using a configuration files, where is possible to associate file type and its corresponden regular expression. The code includes a script to test the regex without running gitdm. Signed-off-by: Germán Póo-Caamaño <gpoo@gnome.org>
2011-05-10Add the VirtualEmployer mechanismJonathan Corbet1-0/+32
A certain obnoxious developer wants his contributions to be split between two employers. So add the "VirtualEmployer" mechanism to make that possible. A virtual employer is defined with: VirtualEmployer ve-name nn% real-name ... end (This construct must appear in the main configuration file). Developers can be associated with the virtual employer in the usual way; at report time, any changes credited to that employer will be split among the real employers according to the percentages provided. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2011-05-10Update copyright noticesJonathan Corbet1-2/+2
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2011-02-17Allow to add funky email addresses as the first field of an aliasCédric Bosdonnat1-4/+4
2010-07-22Use os.path.join() to prepend the directory nameJonathan Corbet1-6/+6
...that way we get the right result regardless of whether slashes have been provided. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2010-06-30Add option to get the configuration files from a given base directoryTiago Vignatti1-4/+5
Instead boringly be replicating the directory base name where gitdm is installed and write it on each option inside the configuration file, just send it through the command line. Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
2009-11-23From: Iestyn Pryce <dylunio@gmail.com>Jonathan Corbet1-1/+1
Preserve spaces in the second parameter of the overall config file. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2008-10-16Use find() instead of index()Jonathan Corbet1-1/+1
That keeps it from crashing on seemingly malformed addresses. Change suggested by Dave Foster. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2008-07-18Fix up the copyright notices.Jonathan Corbet1-0/+9
2008-06-27Initial commitJonathan Corbet1-0/+110
First commit of gitdm to the new repo. Call it version 0.10 or something silly like that.