We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20812b0 commit 2fba784Copy full SHA for 2fba784
1 file changed
src/main/kotlin/dev/kamisama/cli/commands/DiffCmd.kt
@@ -59,6 +59,7 @@ class DiffCmd(
59
val id2 = resolveCommit(repo, commit2!!)
60
showDiff(repo, id1, id2, context)
61
}
62
+
63
// Compare one commit with HEAD
64
commit1 != null && commit2 == null -> {
65
val id1 = resolveCommit(repo, commit1!!)
@@ -69,6 +70,7 @@ class DiffCmd(
69
70
71
showDiff(repo, id1, head.id, context)
72
73
74
// Compare HEAD with the working directory (or staged if --cached)
75
else -> {
76
if (cached) {
0 commit comments