MCPcopy
hub / github.com/jisaacks/GitGutter / git_file_commits

Method git_file_commits

modules/handler.py:595–610  ·  view source on GitHub ↗

r"""Query all commits with changes to the attached file. The git output will have following format splitted by \a: ( ago)

(self)

Source from the content-addressed store, hash-verified

593 ])
594
595 def git_file_commits(self):
596 r"""Query all commits with changes to the attached file.
597
598 The git output will have following format splitted by \a:
599 <timestamp>
600 <hash> <title>
601 <name> <email>
602 <date> (<time> ago)
603 """
604 return self.execute_async([
605 self._git_binary,
606 'log',
607 '--pretty="%at\a%h | %s\a%an <%aE>\a%ad (%ar)"',
608 '--date=local', '--max-count=9000',
609 '--', self._git_path
610 ])
611
612 def git_branches(self):
613 """Query all branches of the file's repository."""

Callers 1

set_against_file_commitFunction · 0.80

Calls 1

execute_asyncMethod · 0.95

Tested by

no test coverage detected