Package moap :: Package vcs :: Module git :: Class Git
[hide private]
[frames] | no frames]

Class Git

source code

extern.log.log.Loggable --+    
                          |    
                    vcs.VCS --+
                              |
                             Git
Known Subclasses:

Instance Methods [hide private]
bool
commit(self, paths, message)
Commit the given list of paths, with the given message.
source code
str
diff(self, path)
Return a diff for the given path.
source code
 
getFileMatcher(self)
Return an re matcher object that will expand to the file being changed.
source code
list of str
getUnknown(self, path)
Get a list of unknown paths under the given path and relative to it.
source code
 
ignore(self, paths, commit=True)
Make the VCS ignore the given list of paths.
source code
 
update(self, path)
Update the given path to the latest version.
source code

Inherited from vcs.VCS: __init__, backup, createTree, diffCheckout, getAdded, getChanges, getCheckoutCommands, getDeleted, getIgnored, getPropertyChanges, restore

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  name = 'Git'

Inherited from vcs.VCS: logCategory

Instance Variables [hide private]

Inherited from vcs.VCS: meta, path

Method Details [hide private]

commit(self, paths, message)

source code 

Commit the given list of paths, with the given message. Note that depending on the VCS, parents that were just added may need to be commited as well.

Returns: bool
Overrides: vcs.VCS.commit
(inherited documentation)

diff(self, path)

source code 

Return a diff for the given path.

The diff should not end in a newline; an empty diff should be an empty string.

The diff should also be relative to the working directory; no absolute paths.

Returns: str
the diff
Overrides: vcs.VCS.diff
(inherited documentation)

getFileMatcher(self)

source code 

Return an re matcher object that will expand to the file being changed.

The default implementation works for CVS and SVN.

Overrides: vcs.VCS.getFileMatcher
(inherited documentation)

getUnknown(self, path)

source code 

Get a list of unknown paths under the given path and relative to it.

Parameters:
  • path - the path under which to check for files
Returns: list of str
list of paths
Overrides: vcs.VCS.getUnknown
(inherited documentation)

ignore(self, paths, commit=True)

source code 

Make the VCS ignore the given list of paths.

Parameters:
  • paths - list of paths, relative to the checkout directory
  • commit - if True, commit the ignore updates.
Overrides: vcs.VCS.ignore
(inherited documentation)

update(self, path)

source code 

Update the given path to the latest version.

Overrides: vcs.VCS.update
(inherited documentation)