You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kart diff errors in some situations without a working copy, even when the diff doesn't involve one.
To Reproduce
$ kart clone --no-checkout me@example.com/repo
$ kart diff -o json HEAD^1 HEADError: Cannot generate working copy diff:Repository has no working copy. (use "kart create-workingcopy")
Same occurs between any two commits/refs/trees, it's not related to HEAD specifically. Using A...B/A..B works fine, though produces different results (and .. doesn't work for trees)
Expected behaviour
Show the diff between two arbitrary commits/trees, which shouldn't relate to the working-copy.
I think we only support COMMIT..COMMIT and COMMIT...COMMIT for specifying a commit range.
If you supply them as two args I think it parses it as COMMIT PATHSPEC.
But yeah we should support both for consistency with git - although git always supports so many weird things
Describe the bug
kart diff
errors in some situations without a working copy, even when the diff doesn't involve one.To Reproduce
Same occurs between any two commits/refs/trees, it's not related to
HEAD
specifically. UsingA...B
/A..B
works fine, though produces different results (and..
doesn't work for trees)Expected behaviour
Show the diff between two arbitrary commits/trees, which shouldn't relate to the working-copy.
Version Info
The text was updated successfully, but these errors were encountered: