@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.
@@ -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`,
@@ -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;