@openvcs/git-plugin 0.2.0-nightly.20260508.58 → 0.2.0-nightly.20260509.60

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.
@@ -159,7 +159,15 @@ export class GitVcsDelegates extends VcsDelegateBase {
159
159
  }
160
160
  createBranch(params, _context) {
161
161
  const git = this.requireGit(params.session_id);
162
- git.createBranch(asTrimmedString(params.name));
162
+ const name = asTrimmedString(params.name);
163
+ const checkout = params.checkout === true;
164
+ if (checkout) {
165
+ git.createBranch(name);
166
+ git.checkoutBranch(name);
167
+ }
168
+ else {
169
+ git.createBranch(name);
170
+ }
163
171
  return null;
164
172
  }
165
173
  checkoutBranch(params, _context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvcs/git-plugin",
3
- "version": "0.2.0-nightly.20260508.58",
3
+ "version": "0.2.0-nightly.20260509.60",
4
4
  "description": "OpenVCS Git plugin - Node.js runtime",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "homepage": "https://github.com/Open-VCS/OpenVCS-Plugin-Git",
@@ -18,7 +18,7 @@
18
18
  "openvcs": {
19
19
  "id": "openvcs.git",
20
20
  "name": "Git",
21
- "version": "0.2.0-nightly.20260508.58",
21
+ "version": "0.2.0-nightly.20260509.60",
22
22
  "author": "OpenVCS Contributors",
23
23
  "description": "Git VCS backend plugin for OpenVCS",
24
24
  "default_enabled": true,
@@ -261,7 +261,15 @@ export class GitVcsDelegates extends VcsDelegateBase<GitRuntimeDependencies> {
261
261
  _context: PluginRuntimeContext,
262
262
  ): null {
263
263
  const git = this.requireGit(params.session_id);
264
- git.createBranch(asTrimmedString(params.name));
264
+ const name = asTrimmedString(params.name);
265
+ const checkout = params.checkout === true;
266
+
267
+ if (checkout) {
268
+ git.createBranch(name);
269
+ git.checkoutBranch(name);
270
+ } else {
271
+ git.createBranch(name);
272
+ }
265
273
  return null;
266
274
  }
267
275