</term>
<listitem>
<para>When importing the Debian patch, use the author identity as
- comitter identity.</para>
+ committer identity.</para>
</listitem>
</varlistentry>
<varlistentry>
</term>
<listitem>
<para>When importing the Debian patch, use the author date as
- comitter date. <warning><para>Git will subtly misbehave if the
+ committer date. <warning><para>Git will subtly misbehave if the
committer date of a commit is not later than or equal to all
its parents.</para></warning></para>
</listitem>
("Set up tracking for remote branches, "
"default is '%(track)s'"),
'author-is-committer':
- ("Use the authors's name also as the comitter's name, "
+ ("Use the authors's name also as the committer's name, "
"default is '%(author-is-committer)s'"),
'author-date-is-committer-date':
- ("Use the authors's date as the comitter's date, "
+ ("Use the authors's date as the committer's date, "
"default is '%(author-date-is-committer-date)s'"),
'create-missing-branches':
("Create missing branches automatically, "
# vim: set fileencoding=utf-8 :
#
-# (C) 2011 Guido Günther <agx@sigxcpu.org>
+# (C) 2011,2014 Guido Günther <agx@sigxcpu.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
return datetime.timedelta(0)
class GitModifier(object):
- """Stores authorship/comitter information"""
+ """Stores authorship/committer information"""
def __init__(self, name=None, email=None, date=None):
"""
@param name: the modifier's name
"datetime object or git raw date" % date)
def _get_env(self, who):
- """Get author or comitter information as env var dictionary"""
+ """Get author or committer information as env var dictionary"""
who = who.upper()
if who not in ['AUTHOR', 'COMMITTER']:
- raise GitModifierError("Neither comitter nor author")
+ raise GitModifierError("Neither committer nor author")
extra_env = {}
if self.name:
def get_committer_env(self):
"""
- Get env vars for comitter information
+ Get env vars for committer information
>>> g = GitModifier("foo", "bar")
>>> g.get_committer_env()
@param parents: parents of this commit
@param author: authorship information
@type author: C{dict} with keys 'name' and 'email' or L{GitModifier}
- @param committer: comitter information
+ @param committer: committer information
@type committer: C{dict} with keys 'name' and 'email'
"""
extra_env = {}
def fixup_section(repo, git_author, options, dch_options):
"""
- Fixup the changelog header and trailer's comitter and email address
+ Fixup the changelog header and trailer's committer and email address
It might otherwise point to the last git committer instead of the person
creating the changelog
>>> modifier._get_env('foo')
Traceback (most recent call last):
...
- GitModifierError: Neither comitter nor author
+ GitModifierError: Neither committer nor author
>>> modifier['name']
'foo'
>>> modifier['email']