Package translate :: Package storage :: Package versioncontrol :: Module git :: Class git
[hide private]
[frames] | no frames]

Class git

source code

GenericRevisionControlSystem --+
                               |
                              git

Class to manage items under revision control of git.

Instance Methods [hide private]
 
_get_git_dir(self)
git requires the git metadata directory for every operation
source code
 
_get_git_command(self, args)
prepends generic git arguments to default ones
source code
 
update(self, revision=None)
Does a clean update of the given path
source code
 
commit(self, message=None, author=None)
Commits the file and supplies the given commit message if present
source code
 
getcleanfile(self, revision=None)
Get a clean version of a file from the git repository
source code

Inherited from GenericRevisionControlSystem: __init__

Class Variables [hide private]
  RCS_METADIR = '.git'
The name of the metadata directory of the RCS
  SCAN_PARENTS = True
whether to check the parent directories for the metadata directory of the RCS working copy
Method Details [hide private]

update(self, revision=None)

source code 

Does a clean update of the given path

Overrides: GenericRevisionControlSystem.update

commit(self, message=None, author=None)

source code 

Commits the file and supplies the given commit message if present

Overrides: GenericRevisionControlSystem.commit

getcleanfile(self, revision=None)

source code 

Get a clean version of a file from the git repository

Overrides: GenericRevisionControlSystem.getcleanfile