Skip to content

fix accidental swap of local<->remote in difftool invocation#6158

Merged
aryairani merged 1 commit intotrunkfrom
26-02-02-diff-branch-arg-order
Feb 3, 2026
Merged

fix accidental swap of local<->remote in difftool invocation#6158
aryairani merged 1 commit intotrunkfrom
26-02-02-diff-branch-arg-order

Conversation

@mitchellwrosen
Copy link
Member

Overview

Fixes #6157

This PR fixes the accidental swapping of "local" & "remote" in the difftool invocation. It's a little hard to capture in a test since the fix doesn't affect the ucm-rendered difference between the branches, but here is a screenshot of it working:

Screenshot 2026-02-02 at 1 10 54 PM

This is just showing a run with UCM_DIFFTOOL='echo $LOCAL $REMOTE'. On trunk, we'd echo

/private/var/folders/0m/cpz59dyj3ts58crh9m1gbcyr0000gn/T/nix-shell.gZ8Y6T/unison-e836d32e1092301f/main.u /private/var/folders/0m/cpz59dyj3ts58crh9m1gbcyr0000gn/T/nix-shell.gZ8Y6T/unison-e836d32e1092301f/topic.u

no matter the argument order. On this branch, the argument order is reflected in the arguments passed to the difftool.

@mitchellwrosen mitchellwrosen marked this pull request as ready for review February 2, 2026 19:20
@aryairani
Copy link
Contributor

Awesome, thanks

@aryairani aryairani merged commit 586bd42 into trunk Feb 3, 2026
31 checks passed
@aryairani aryairani deleted the 26-02-02-diff-branch-arg-order branch February 3, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

diff.branch doesn't honor the specified args order

2 participants