{/if}
{#if view.showDetails && view.source !== "patch"}
{#if view.commitsError}
{@render notice(view.commitsError, true)}
{:else if commits.length === 0}
{@render notice(
view.sourceBranch === view.targetBranch
? "Source and target are the same branch, nothing to merge."
: "No commits between target and source. Make sure your source branch has commits not on the target."
)}
{:else}
{
stagedRange = range;
stagedWhole = whole;
}
}}
/>
{/if}
{/if}
{#if hasChanges}
{/if}