self.__author = field[1]
if field[0] == 'committer':
self.__committer = field[1]
- self.__log = ''.join(lines[i:])
+ self.__log = ''.join(lines[i+1:])
def get_id_hash(self):
return self.__id_hash
"""
write_string(head_link, val)
+def rev_parse(git_id):
+ """Parse the string and return an SHA1 id
+ """
+ return _output(['git-rev-parse', git_id]).strip()
+
def add(names):
"""Add the files or recursively add the directory contents
"""