From a48f4638c0099df2953e7161efc14b67d13c8f1f Mon Sep 17 00:00:00 2001 From: Max P Date: Mon, 19 Aug 2024 19:50:18 +0200 Subject: [PATCH] Update git log command format - Modified the `log_command` to use a more detailed pretty format - Changed to `--pretty="format:%h%n%ad%n%s%n%n%b%n---%n"` --- ait.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ait.py b/ait.py index dfe772a..55efc42 100644 --- a/ait.py +++ b/ait.py @@ -64,7 +64,7 @@ def run_git_commands(diff_expression, log_expression): diff_command = ["git", "diff", diff_expression] diff_result = subprocess.run(diff_command, capture_output=True, text=True) - log_command = ["git", "log", log_expression, "--pretty=format:%h %s%n%b%n---%n"] + log_command = ["git", "log", log_expression, "--pretty=\"format:%h%n%ad%n%s%n%n%b%n---%n\""] log_result = subprocess.run(log_command, capture_output=True, text=True) return diff_result.stdout, log_result.stdout