We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53195a0 commit b7977efCopy full SHA for b7977ef
src/git/utils/branch-utils.ts
@@ -4,20 +4,6 @@ import type { Container } from '../../container';
4
import { getIconPathUris } from '../../system/vscode';
5
import type { GitBranch } from '../models/branch';
6
7
-export type BranchIconStatus = 'ahead' | 'behind' | 'diverged' | 'synced';
8
-export function getBranchIconStatus(branch: GitBranch): BranchIconStatus | undefined {
9
- switch (branch.status) {
10
- case 'ahead':
11
- case 'behind':
12
- case 'diverged':
13
- return branch.status;
14
- case 'upToDate':
15
- return 'synced';
16
- default:
17
- return undefined;
18
- }
19
-}
20
-
21
export function getBranchIconPath(container: Container, branch: GitBranch | undefined): IconPath {
22
const status = branch?.status;
23
switch (status) {
0 commit comments