From e1fd506269e72e31ba9e827fadc905b2440694ba Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 4 Dec 2024 15:09:14 -0800 Subject: [PATCH] feat: add direct git diff output for pretty mode --- aider/commands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aider/commands.py b/aider/commands.py index 3e910f590..6a29b269b 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -588,6 +588,10 @@ class Commands: self.io.tool_output(f"Diff since {commit_before_message[:7]}...") + if self.coder.pretty: + run_cmd(f"git diff {commit_before_message} HEAD") + return + diff = self.coder.repo.diff_commits( self.coder.pretty, commit_before_message,