Skip to content

Commit 5d71abd

Browse files
authored
Merge pull request #6009 from unisonweb/branch-diff-help
2 parents 2738d66 + 23cefaa commit 5d71abd

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

unison-cli/src/Unison/CommandLine/InputPatterns.hs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,7 +2366,7 @@ diffBranch =
23662366
InputPattern
23672367
{ patternName = "diff.branch",
23682368
aliases = ["branch.diff"],
2369-
visibility = I.Hidden,
2369+
visibility = I.Visible,
23702370
params =
23712371
Parameters
23722372
{ requiredParams =
@@ -2382,7 +2382,13 @@ diffBranch =
23822382
],
23832383
trailingParams = Optional [] Nothing
23842384
},
2385-
help = "TODO",
2385+
help =
2386+
( P.column2
2387+
[ ( "`diff.branch one two`",
2388+
P.wrap "shows a diff between branches `one` and `two`"
2389+
)
2390+
]
2391+
),
23862392
parse = \case
23872393
[branch1, branch2] ->
23882394
Input.DiffBranchI

unison-src/transcripts/idempotent/help.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@
244244
deprecated.root-reflog
245245
`deprecated.root-reflog` lists the changes that have affected the root namespace. This has been deprecated in favor of `reflog` which shows the reflog for the current project.
246246
247+
diff.branch (or branch.diff)
248+
`diff.branch one two` shows a diff between branches `one` and
249+
`two`
250+
247251
diff.namespace
248252
`diff.namespace before after` shows how the namespace `after`
249253
differs from the namespace

0 commit comments

Comments
 (0)