Remove remote editing from the Git sidebar
This commit is contained in:
@@ -87,7 +87,6 @@ surface GitControlSurface {
|
||||
GitHistoryRequested(project, branch)
|
||||
GitFileHistoryRequested(project, file_path)
|
||||
GitRemoteStateRequested(project)
|
||||
GitRemoteSetRequested(project, remote_url)
|
||||
GitFetchRequested(project)
|
||||
GitPullRequested(project)
|
||||
GitPushRequested(project)
|
||||
@@ -153,12 +152,6 @@ rule GetRemoteState {
|
||||
ensures: GitRemoteStateReport(project, local_branch, upstream_branch, ahead, behind)
|
||||
}
|
||||
|
||||
rule SetRemote {
|
||||
when: GitRemoteSetRequested(project, remote_url)
|
||||
-- Creates origin when absent and replaces its URL when already configured.
|
||||
ensures: GitRemoteUpdated(project, remote_url)
|
||||
}
|
||||
|
||||
rule Fetch {
|
||||
when: GitFetchRequested(project)
|
||||
ensures: RemoteRefsUpdated(project)
|
||||
|
||||
@@ -674,8 +674,10 @@ rule ImportListClick {
|
||||
-- The sidebar must surface these capabilities directly.
|
||||
|
||||
-- State: not_a_repo
|
||||
-- Remote URL text input + "Initialize Git" button.
|
||||
-- "Initialize Git" button for the current blog project directory.
|
||||
-- Init progress with phase/percentage/detail, collapsible transcript.
|
||||
-- The remote URL is discovered from the repository and is never editable
|
||||
-- from the sidebar.
|
||||
|
||||
-- State: active_repo
|
||||
value GitActiveView {
|
||||
@@ -702,6 +704,11 @@ surface GitActiveViewSurface {
|
||||
|
||||
provides:
|
||||
GitCommitRequested(message)
|
||||
|
||||
@guarantee CurrentProjectRepository
|
||||
-- Git operations always target the current blog project's directory.
|
||||
-- Any origin URL is discovered from that repository and cannot be
|
||||
-- entered or changed in this surface.
|
||||
}
|
||||
|
||||
value GitStatusFile {
|
||||
|
||||
Reference in New Issue
Block a user