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): ...@@ -194,6 +194,13 @@ class CommitTool (BaseTool):
else: else:
return None return None
security.declarePublic('getHeadCommit')
def getHeadCommit(self):
"""
Returns the HEAD commit object
"""
return self._getOb(self.getHeadCommitId())
security.declarePublic('newContent') security.declarePublic('newContent')
def newContent(self, id=None, portal_type=None, **kw): 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