From b5943bd39d776fc4c3b3dea03c0f3d4b6f4bb260 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 19 Apr 2022 10:32:55 -0400 Subject: [PATCH] initial docstring --- jc/parsers/git_log.py | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/jc/parsers/git_log.py b/jc/parsers/git_log.py index fa4bb3aa..d46cafc6 100644 --- a/jc/parsers/git_log.py +++ b/jc/parsers/git_log.py @@ -1,6 +1,19 @@ """jc - JSON Convert `git log` command output parser -<> +Can be used with the following format options: +- `oneline` +- `short` +- `medium` +- `full` +- `fuller` + +Additional options supported (work in progress): +- --stat ??? +- --compact-summary ??? +- --summary (indented one space) ??? +- --numstat +- --shortstat +- --log-size Usage (cli): @@ -19,9 +32,14 @@ Schema: [ { - "git-log": string, - "bar": boolean, - "baz": integer + "commit": string, + "author": string, + "author_email": string, + "date": string, + "commit_by": string, + "commit_by_email": string, + "commit_by_date": string, + "message": string } ] @@ -63,12 +81,7 @@ def _process(proc_data: List[Dict]) -> List[Dict]: List of Dictionaries. Structured to conform to the schema. """ - - # process the data here - # rebuild output for added semantic information - # use helper functions in jc.utils for int, float, bool - # conversions and timestamps - + # nothing to process return proc_data