Save commit data when writing to the json file so the results can be copared/extended later.
Signed-off-by: Richard Purdie <[email protected]> --- scripts/contrib/patchreview.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/contrib/patchreview.py b/scripts/contrib/patchreview.py index dc417b4c55b4..002991c559cf 100755 --- a/scripts/contrib/patchreview.py +++ b/scripts/contrib/patchreview.py @@ -222,6 +222,7 @@ if __name__ == "__main__": row = collections.Counter() row["total"] = len(results) row["date"] = subprocess.check_output(["git", "-C", args.directory, "show", "-s", "--pretty=format:%cd", "--date=format:%s"]).decode("utf-8").strip() + row["commit"] = subprocess.check_output(["git", "-C", args.directory, "show", "-s", "--pretty=format:%H"]).decode("utf-8").strip() for r in results.values(): if r.upstream_status in status_values: row[r.upstream_status] += 1 -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#166017): https://lists.openembedded.org/g/openembedded-core/message/166017 Mute This Topic: https://lists.openembedded.org/mt/91287046/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
