@kubohiroya/turbowarp-plus-editor-git 0.16.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +18 -2
- package/README.md +17 -1
- package/dist/branch-button.d.ts +32 -0
- package/dist/filesystem.d.ts +2 -2
- package/dist/github-pull-requests.d.ts +20 -0
- package/dist/index.d.ts +12 -6
- package/dist/index.js +739 -158
- package/dist/local-operations.d.ts +8 -1
- package/dist/messages.d.ts +16 -2
- package/dist/{project-asset-paths-KV715791.js → project-asset-paths-BzwVf9HE.js} +653 -1
- package/dist/{project-comparison-1rggIJse.js → project-comparison-BXOQcZ73.js} +10 -654
- package/dist/project-source-diff.js +2 -1
- package/dist/pull-request-panel.d.ts +25 -1
- package/dist/remote-operations.d.ts +23 -0
- package/dist/{repository-BYno-5f8.js → repository-ByKRBftJ.js} +370 -14
- package/dist/repository.d.ts +39 -0
- package/dist/repository.js +1 -1
- package/dist/style.css +28 -0
- package/package.json +1 -1
- package/src/branch-button.tsx +216 -0
- package/src/filesystem.ts +2 -1
- package/src/github-pull-requests.ts +7 -0
- package/src/index.tsx +213 -67
- package/src/local-operations.ts +23 -3
- package/src/messages.ts +14 -4
- package/src/pull-request-panel.tsx +125 -14
- package/src/remote-operations.ts +84 -3
- package/src/repository.ts +155 -9
- package/src/style.css +28 -0
- package/test/smart-http-fixture.js +20 -0
|
@@ -16,7 +16,8 @@ export type LocalOperation = {
|
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Creates `name` at HEAD, at the commit `at`, or at `origin/<name>` with `fromRemote`, and switches to it with
|
|
19
|
-
* `checkout`.
|
|
19
|
+
* `checkout`. With `reuse` (only with `at`), a branch `name` that already points at `at` is switched to instead of
|
|
20
|
+
* failing, and one that points elsewhere fails with `pullRequestBranch` and is never moved.
|
|
20
21
|
*/
|
|
21
22
|
| {
|
|
22
23
|
kind: 'createBranch';
|
|
@@ -24,10 +25,16 @@ export type LocalOperation = {
|
|
|
24
25
|
fromRemote?: boolean;
|
|
25
26
|
at?: string;
|
|
26
27
|
checkout: boolean;
|
|
28
|
+
reuse?: boolean;
|
|
27
29
|
} | {
|
|
28
30
|
kind: 'switchBranch';
|
|
29
31
|
name: string;
|
|
30
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* The local branch a pull request is opened on: `pr/<number>`, a name `git check-ref-format --branch` accepts. It is
|
|
35
|
+
* created at the fetched head (`pullRequestRef(number)`) and is an ordinary branch afterwards.
|
|
36
|
+
*/
|
|
37
|
+
export declare const pullRequestBranch: (number: number) => string;
|
|
31
38
|
/**
|
|
32
39
|
* Stages, unstages or commits in the granted repository. Like pull, Git's writes are collected first and applied
|
|
33
40
|
* after the files they replace are checked again; a failure part way puts back what was applied. Only `.git/index`,
|
package/dist/messages.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export declare const messages: {
|
|
|
3
3
|
pullRequests: string;
|
|
4
4
|
localChanges: string;
|
|
5
5
|
title: string;
|
|
6
|
-
menu: string;
|
|
7
6
|
close: string;
|
|
8
7
|
choose: string;
|
|
9
8
|
refresh: string;
|
|
@@ -44,6 +43,10 @@ export declare const messages: {
|
|
|
44
43
|
commitMessage: string;
|
|
45
44
|
switchUnsafe: string;
|
|
46
45
|
branchExists: string;
|
|
46
|
+
branchConflict: string;
|
|
47
|
+
pullRequestBranch: string;
|
|
48
|
+
openedPullRequest: string;
|
|
49
|
+
openedPullRequestDetached: string;
|
|
47
50
|
locked: string;
|
|
48
51
|
branchName: string;
|
|
49
52
|
pullUnsafe: string;
|
|
@@ -106,12 +109,15 @@ export declare const messages: {
|
|
|
106
109
|
historyCopyFailed: string;
|
|
107
110
|
historyRefs: string;
|
|
108
111
|
cancel: string;
|
|
112
|
+
branchMenu: string;
|
|
113
|
+
openPanel: string;
|
|
114
|
+
newBranchItem: string;
|
|
115
|
+
newBranchTitle: string;
|
|
109
116
|
};
|
|
110
117
|
ja: {
|
|
111
118
|
pullRequests: string;
|
|
112
119
|
localChanges: string;
|
|
113
120
|
title: string;
|
|
114
|
-
menu: string;
|
|
115
121
|
close: string;
|
|
116
122
|
choose: string;
|
|
117
123
|
refresh: string;
|
|
@@ -152,6 +158,10 @@ export declare const messages: {
|
|
|
152
158
|
commitMessage: string;
|
|
153
159
|
switchUnsafe: string;
|
|
154
160
|
branchExists: string;
|
|
161
|
+
branchConflict: string;
|
|
162
|
+
pullRequestBranch: string;
|
|
163
|
+
openedPullRequest: string;
|
|
164
|
+
openedPullRequestDetached: string;
|
|
155
165
|
locked: string;
|
|
156
166
|
branchName: string;
|
|
157
167
|
pullUnsafe: string;
|
|
@@ -214,6 +224,10 @@ export declare const messages: {
|
|
|
214
224
|
historyCopyFailed: string;
|
|
215
225
|
historyRefs: string;
|
|
216
226
|
cancel: string;
|
|
227
|
+
branchMenu: string;
|
|
228
|
+
openPanel: string;
|
|
229
|
+
newBranchItem: string;
|
|
230
|
+
newBranchTitle: string;
|
|
217
231
|
};
|
|
218
232
|
};
|
|
219
233
|
export type Labels = typeof messages.en;
|