Accessing Git from python

Module args Git command argument handling helpers
Module commit Git commit class and helpers
Module errors Git base error exception
Module fastimport Git fast import class
Module modifier Someone who modifiers something in git
Module repository A Git repository
Module vfs Make blobs in a git repository accessible as file like objects

From the __init__.py module:

Function rfc822_date_to_git Parse a date in RFC822 format, and convert to a 'seconds tz' string.
def rfc822_date_to_git(rfc822_date, fuzzy=False):

Parse a date in RFC822 format, and convert to a 'seconds tz' string.

>>> rfc822_date_to_git('Thu, 1 Jan 1970 00:00:01 +0000')
'1 +0000'
>>> rfc822_date_to_git('Thu, 20 Mar 2008 01:12:57 -0700')
'1206000777 -0700'
>>> rfc822_date_to_git('Sat, 5 Apr 2008 17:01:32 +0200')
'1207407692 +0200'
>>> rfc822_date_to_git('So, 26 Feb 1998 8:50:00 +0100')
Traceback (most recent call last):
...
ValueError: Unknown string format
>>> rfc822_date_to_git('So, 26 Feb 1998 8:50:00 +0100', fuzzy=True)
'888479400 +0100'
API Documentation for git-buildpackage, generated by pydoctor at 2018-01-07 20:01:57.