Skip to content
Snippets Groups Projects
Commit ce3cca04 authored by Campbell Barton's avatar Campbell Barton
Browse files

Add cache method to git-log

parent ffddb3dc
Branches
Tags
No related merge requests found
...@@ -49,6 +49,15 @@ class GitCommit: ...@@ -49,6 +49,15 @@ class GitCommit:
self._files_status = \ self._files_status = \
None None
def cache(self):
""" Cache all properties
"""
self.author
self.date
self.body
self.files
self.files_status
def _log_format(self, format, args=()): def _log_format(self, format, args=()):
# sha1 = self.sha1.decode('ascii') # sha1 = self.sha1.decode('ascii')
cmd = ( cmd = (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment