On Friday, June 16, 2017 at 10:21:46 AM UTC-5, Edward K. Ream wrote:
> I'll be satisfied with the present work once I have created leoGit.py.
No need to do that now. Rev a2d53fc adds g.execGitCommand, with this
signature:
def execGitCommand(command, directory, limit=0, trace=False):
See the code for details. Here is an example of calling it and printing
the results:
command = r'git log --pretty=format:"%H"'
directory = r'c:\leo.repo\leo-editor'
aList = g.execGitCommand(command=command,directory=directory)
g.printList(aList[:5])
The output is:
[
'ac01b4bcc5722c9aaeda1336112d0829cf2f5520\n'
'6457ac81393a03d0f6a189cb393930ca4f86a5a3\n'
'd8013001db1bb965ccb45ef5fcaf1b18aeeee8fc\n'
'325c62bc4966a1d41ea17f0a314e5c5c3affd15a\n'
'd7b8b018b913d3ae01317f3f15aacd769d305374\n'
]
g.execGitCommand should suffice to get any desired data from git. We'll
see...
I would like to conclude the git work for a bit. It's time to move on...
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.