Skip to content

Commit cbf418f

Browse files
committed
Splits git models from utils
1 parent c078aa4 commit cbf418f

File tree

142 files changed

+1741
-1680
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+1741
-1680
lines changed

src/ai/aiProviderService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import type { Container } from '../container';
66
import { CancellationError } from '../errors';
77
import type { GitCommit } from '../git/models/commit';
88
import { assertsCommitHasFullDetails, isCommit } from '../git/models/commit';
9-
import { uncommitted, uncommittedStaged } from '../git/models/constants';
109
import type { GitRevisionReference } from '../git/models/reference';
1110
import type { Repository } from '../git/models/repository';
1211
import { isRepository } from '../git/models/repository';
12+
import { uncommitted, uncommittedStaged } from '../git/models/revision';
1313
import { showAIModelPicker } from '../quickpicks/aiModelPicker';
1414
import { getSettledValue } from '../system/promise';
1515
import { getPossessiveForm } from '../system/string';

src/autolinks/autolinks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import type { IntegrationId } from '../constants.integrations';
55
import { IssueIntegrationId } from '../constants.integrations';
66
import type { Container } from '../container';
77
import type { IssueOrPullRequest } from '../git/models/issue';
8-
import { getIssueOrPullRequestHtmlIcon, getIssueOrPullRequestMarkdownIcon } from '../git/models/issue';
98
import type { GitRemote } from '../git/models/remote';
109
import type { ProviderReference } from '../git/models/remoteProvider';
10+
import { getIssueOrPullRequestHtmlIcon, getIssueOrPullRequestMarkdownIcon } from '../git/utils/icons';
1111
import type { HostingIntegration, IssueIntegration, ResourceDescriptor } from '../plus/integrations/integration';
1212
import { fromNow } from '../system/date';
1313
import { debug } from '../system/decorators/log';

src/commands/copyDeepLink.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { GlCommand } from '../constants.commands';
33
import type { StoredNamedRef } from '../constants.storage';
44
import type { Container } from '../container';
55
import { GitUri } from '../git/gitUri';
6-
import { getBranchNameAndRemote } from '../git/models/branch';
6+
import { getBranchNameAndRemote } from '../git/models/branch.utils';
77
import type { GitReference } from '../git/models/reference';
8-
import { createReference } from '../git/models/reference';
8+
import { createReference } from '../git/models/reference.utils';
99
import { showGenericErrorMessage } from '../messages';
1010
import { ReferencesQuickPickIncludes, showReferencePicker } from '../quickpicks/referencePicker';
1111
import { showRemotePicker } from '../quickpicks/remotePicker';

src/commands/copyShaToClipboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { env } from 'vscode';
33
import { GlCommand } from '../constants.commands';
44
import type { Container } from '../container';
55
import { GitUri } from '../git/gitUri';
6-
import { shortenRevision } from '../git/models/reference';
6+
import { shortenRevision } from '../git/models/revision.utils';
77
import { showGenericErrorMessage } from '../messages';
88
import { first } from '../system/iterable';
99
import { Logger } from '../system/logger';

src/commands/createPullRequestOnRemote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { window } from 'vscode';
22
import { GlCommand } from '../constants.commands';
33
import type { Container } from '../container';
4-
import { getRemoteNameFromBranchName } from '../git/models/branch';
4+
import { getRemoteNameFromBranchName } from '../git/models/branch.utils';
55
import type { GitRemote } from '../git/models/remote';
66
import type { RemoteResource } from '../git/models/remoteResource';
77
import { RemoteResourceType } from '../git/models/remoteResource';

src/commands/diffFolderWithRevision.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { GlCommand } from '../constants.commands';
55
import type { Container } from '../container';
66
import { openFolderCompare } from '../git/actions/commit';
77
import { GitUri } from '../git/gitUri';
8-
import { shortenRevision } from '../git/models/reference';
8+
import { shortenRevision } from '../git/models/revision.utils';
99
import { showGenericErrorMessage } from '../messages';
1010
import { showCommitPicker } from '../quickpicks/commitPicker';
1111
import { CommandQuickPickItem } from '../quickpicks/items/common';

src/commands/diffFolderWithRevisionFrom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { GlCommand } from '../constants.commands';
55
import type { Container } from '../container';
66
import { openFolderCompare } from '../git/actions/commit';
77
import { GitUri } from '../git/gitUri';
8-
import { shortenRevision } from '../git/models/reference';
8+
import { shortenRevision } from '../git/models/revision.utils';
99
import { showGenericErrorMessage } from '../messages';
1010
import { ReferencesQuickPickIncludes, showReferencePicker } from '../quickpicks/referencePicker';
1111
import { getBestRepositoryOrShowPicker } from '../quickpicks/repositoryPicker';

src/commands/diffLineWithWorking.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { GlCommand } from '../constants.commands';
44
import type { Container } from '../container';
55
import { GitUri } from '../git/gitUri';
66
import type { GitCommit } from '../git/models/commit';
7-
import { uncommittedStaged } from '../git/models/constants';
7+
import { uncommittedStaged } from '../git/models/revision';
88
import { showFileNotUnderSourceControlWarningMessage, showGenericErrorMessage } from '../messages';
99
import { Logger } from '../system/logger';
1010
import { command, executeCommand } from '../system/vscode/command';

src/commands/diffWith.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { GlCommand } from '../constants.commands';
55
import type { Container } from '../container';
66
import type { GitCommit } from '../git/models/commit';
77
import { isCommit } from '../git/models/commit';
8-
import { deletedOrMissing } from '../git/models/constants';
9-
import { isShaLike, isUncommitted, shortenRevision } from '../git/models/reference';
8+
import { deletedOrMissing } from '../git/models/revision';
9+
import { isShaLike, isUncommitted, shortenRevision } from '../git/models/revision.utils';
1010
import { showGenericErrorMessage } from '../messages';
1111
import { createMarkdownCommandLink } from '../system/commands';
1212
import { Logger } from '../system/logger';

src/commands/diffWithPrevious.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { GlCommand } from '../constants.commands';
33
import type { Container } from '../container';
44
import { GitUri } from '../git/gitUri';
55
import type { GitCommit } from '../git/models/commit';
6-
import { deletedOrMissing } from '../git/models/constants';
6+
import { deletedOrMissing } from '../git/models/revision';
77
import { showCommitHasNoPreviousCommitWarningMessage, showGenericErrorMessage } from '../messages';
88
import { Logger } from '../system/logger';
99
import { command, executeCommand } from '../system/vscode/command';

0 commit comments

Comments
 (0)