Package gbp :: Package git

[hide private]
[frames] | no frames]

# Package git

Accessing Git from python

Submodules | [hide private]

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

Functions | [hide private]

rfc822_date_to_git(rfc822_date) Parse a date in RFC822 format, and convert to a 'seconds tz' `str`ing. |

Variables | [hide private]

| __package__ = ``'``gbp.git``'``

Function Details | [hide private]

### rfc822_date_to_git(rfc822_date)

Parse a date in RFC822 format, and convert to a 'seconds tz' `str`ing.

    >>> 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'