Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make unsafe.force-push visible #5459

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions unison-cli/src/Unison/CommandLine/InputPatterns.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2021,10 +2021,10 @@ pushForce :: InputPattern
pushForce =
InputPattern
"unsafe.force-push"
[]
I.Hidden
["push.unsafe-force"]
I.Visible
[("remote destination", Optional, remoteNamespaceArg), ("local source", Optional, namespaceOrProjectBranchArg suggestionsConfig)]
(P.wrap "Like `push`, but overwrites any remote namespace.")
(P.wrap "Like `push`, but forcibly overwrites the remote namespace.")
$ fmap
( \sourceTarget ->
Input.PushRemoteBranchI
Expand Down
3 changes: 3 additions & 0 deletions unison-src/transcripts/help.output.md
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,9 @@ scratch/main> help
undo
`undo` reverts the most recent change to the codebase.

unsafe.force-push (or push.unsafe-force)
Like `push`, but forcibly overwrites the remote namespace.

update
Adds everything in the most recently typechecked file to the
namespace, replacing existing definitions having the same
Expand Down
Loading