Commit 36492618 authored by Ayush Tiwari's avatar Ayush Tiwari

CommitTool: Add function for get HEAD commit in commit tool

parent 7f3f5115
......@@ -194,6 +194,13 @@ class CommitTool (BaseTool):
else:
return None
security.declarePublic('getHeadCommit')
def getHeadCommit(self):
"""
Returns the HEAD commit object
"""
return self._getOb(self.getHeadCommitId())
security.declarePublic('newContent')
def newContent(self, id=None, portal_type=None, **kw):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment