diff --git a/gitbutler-ui/src/lib/components/BaseBranch.svelte b/gitbutler-ui/src/lib/components/BaseBranch.svelte
index f151314ae..ce9ba2b9e 100644
--- a/gitbutler-ui/src/lib/components/BaseBranch.svelte
+++ b/gitbutler-ui/src/lib/components/BaseBranch.svelte
@@ -4,8 +4,9 @@
import Modal from '$lib/components/Modal.svelte';
import { projectMergeUpstreamWarningDismissed } from '$lib/config/config';
import { tooltip } from '$lib/utils/tooltip';
+ import { writable } from 'svelte/store';
import type { BranchController } from '$lib/vbranches/branchController';
- import type { BaseBranch } from '$lib/vbranches/types';
+ import type { BaseBranch, File, RemoteFile } from '$lib/vbranches/types';
export let base: BaseBranch;
export let projectId: string;
@@ -15,6 +16,7 @@
const mergeUpstreamWarningDismissed = projectMergeUpstreamWarningDismissed(
branchController.projectId
);
+ const selectedFiles = writable<(File | RemoteFile)[]>([]);
let updateTargetModal: Modal;
let mergeUpstreamWarningDismissedCheckbox = false;
@@ -52,6 +54,7 @@
diff --git a/gitbutler-ui/src/lib/components/BranchCommits.svelte b/gitbutler-ui/src/lib/components/BranchCommits.svelte
index 5db7e7340..aba32cfc1 100644
--- a/gitbutler-ui/src/lib/components/BranchCommits.svelte
+++ b/gitbutler-ui/src/lib/components/BranchCommits.svelte
@@ -4,7 +4,8 @@
import type { BranchService } from '$lib/branches/service';
import type { GitHubService } from '$lib/github/service';
import type { BranchController } from '$lib/vbranches/branchController';
- import type { BaseBranch, Branch } from '$lib/vbranches/types';
+ import type { BaseBranch, Branch, File, RemoteFile } from '$lib/vbranches/types';
+ import type { Writable } from 'svelte/store';
export let project: Project;
export let branch: Branch;
@@ -12,6 +13,7 @@
export let githubService: GitHubService;
export let branchController: BranchController;
export let branchService: BranchService;
+ export let selectedFiles: Writable<(File | RemoteFile)[]>;
export let isUnapplied: boolean;
export let branchCount: number;
@@ -26,6 +28,7 @@
{branchCount}
{githubService}
{isUnapplied}
+ {selectedFiles}
type="upstream"
/>
{/if}
diff --git a/gitbutler-ui/src/lib/components/BranchFiles.svelte b/gitbutler-ui/src/lib/components/BranchFiles.svelte
index e6dbde7f3..f662b05be 100644
--- a/gitbutler-ui/src/lib/components/BranchFiles.svelte
+++ b/gitbutler-ui/src/lib/components/BranchFiles.svelte
@@ -1,10 +1,7 @@
{#if branch.active && branch.conflicted}
@@ -64,38 +28,21 @@
{/if}
-