From 3495746654fc0fd925ddd446180a687d9e3cb8de Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Tue, 24 Feb 2026 13:09:20 -0300 Subject: [PATCH] git: Capture all working tree changes for the Review Diff action (#49993) The AI-assisted "Review Diff" action was only working for committed changes because we were passing HEAD in the git command. Without it, it captures all of the working tree changes, the same way the Branch Diff view itself does. I think this is now better and more intuitive, because it shouldn't be required that you commit the changes to have them quickly reviewed by an agent. Release Notes: - N/A --- crates/git/src/repository.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs index 592c04427dc860b77d8ba7a2a677c47ea648b47e..ab445a1cd830a726491fab1fc6209686e80960b1 100644 --- a/crates/git/src/repository.rs +++ b/crates/git/src/repository.rs @@ -2015,7 +2015,7 @@ impl GitRepository for RealGitRepository { DiffType::MergeBase { base_ref } => { new_command(&git_binary_path) .current_dir(&working_directory) - .args(["diff", "--merge-base", base_ref.as_ref(), "HEAD"]) + .args(["diff", "--merge-base", base_ref.as_ref()]) .output() .await? }