dugite 3.0.0 → 3.2.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.md +9 -7
- package/package.json +1 -1
- package/script/embedded-git.json +27 -27
package/README.md
CHANGED
|
@@ -4,6 +4,10 @@ This project provides bindings for Node applications to interact with Git reposi
|
|
|
4
4
|
|
|
5
5
|
The source is in TypeScript, but can be consumed by any JavaScript application.
|
|
6
6
|
|
|
7
|
+
## Migrating from 2.x to 3.x
|
|
8
|
+
|
|
9
|
+
See the migration guide in the [3.0.0 release](https://github.com/desktop/dugite/releases/tag/v3.0.0) for details on breaking changes and how to update your code.
|
|
10
|
+
|
|
7
11
|
### Getting Started
|
|
8
12
|
|
|
9
13
|
Add it to your project:
|
|
@@ -21,17 +25,15 @@ or
|
|
|
21
25
|
Then reference it in your application:
|
|
22
26
|
|
|
23
27
|
```js
|
|
24
|
-
import {
|
|
28
|
+
import { exec } from 'dugite'
|
|
25
29
|
|
|
26
30
|
const pathToRepository = 'C:/path/to/git/repository/'
|
|
27
31
|
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
|
|
31
|
-
// do some things with the output
|
|
32
|
+
const { exitCode, stdout, stderr } = await exec(['status'], pathToRepository)
|
|
33
|
+
if (exitCode === 0) {
|
|
34
|
+
console.log(stdout)
|
|
32
35
|
} else {
|
|
33
|
-
|
|
34
|
-
// error handling
|
|
36
|
+
console.error(stderr)
|
|
35
37
|
}
|
|
36
38
|
```
|
|
37
39
|
|
package/package.json
CHANGED
package/script/embedded-git.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"win32-x64": {
|
|
3
|
-
"name": "dugite-native-v2.
|
|
4
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
|
5
|
-
"checksum": "
|
|
3
|
+
"name": "dugite-native-v2.53.0-6981a1f-windows-x64.tar.gz",
|
|
4
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-windows-x64.tar.gz",
|
|
5
|
+
"checksum": "6df0b7fbd3d28768356786719b9a81d1b071dbce2ed80705edd90c7151c4581f"
|
|
6
6
|
},
|
|
7
7
|
"win32-ia32": {
|
|
8
|
-
"name": "dugite-native-v2.
|
|
9
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
|
10
|
-
"checksum": "
|
|
8
|
+
"name": "dugite-native-v2.53.0-6981a1f-windows-x86.tar.gz",
|
|
9
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-windows-x86.tar.gz",
|
|
10
|
+
"checksum": "8b18afd8b84bd36e0af4839fdcac00dde3b21cdbcf7456ba54145c4d1ce23a81"
|
|
11
11
|
},
|
|
12
12
|
"win32-arm64": {
|
|
13
|
-
"name": "dugite-native-v2.
|
|
14
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
|
15
|
-
"checksum": "
|
|
13
|
+
"name": "dugite-native-v2.53.0-6981a1f-windows-arm64.tar.gz",
|
|
14
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-windows-arm64.tar.gz",
|
|
15
|
+
"checksum": "f581c79cc424d6eb31e7a8ce426d4caee8c55b13a160bdbef93c9ad72ec2f50e"
|
|
16
16
|
},
|
|
17
17
|
"darwin-x64": {
|
|
18
|
-
"name": "dugite-native-v2.
|
|
19
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
|
20
|
-
"checksum": "
|
|
18
|
+
"name": "dugite-native-v2.53.0-6981a1f-macOS-x64.tar.gz",
|
|
19
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-macOS-x64.tar.gz",
|
|
20
|
+
"checksum": "d01649772ec5b997b01d9c605ac39ca7a782e4fb37584058c323043bb8803e53"
|
|
21
21
|
},
|
|
22
22
|
"darwin-arm64": {
|
|
23
|
-
"name": "dugite-native-v2.
|
|
24
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
|
25
|
-
"checksum": "
|
|
23
|
+
"name": "dugite-native-v2.53.0-6981a1f-macOS-arm64.tar.gz",
|
|
24
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-macOS-arm64.tar.gz",
|
|
25
|
+
"checksum": "7786cbf4874561b33a23faebb82bba0e8e9d1a26f1989722877fcc3d0376cebe"
|
|
26
26
|
},
|
|
27
27
|
"linux-x64": {
|
|
28
|
-
"name": "dugite-native-v2.
|
|
29
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
|
30
|
-
"checksum": "
|
|
28
|
+
"name": "dugite-native-v2.53.0-6981a1f-ubuntu-x64.tar.gz",
|
|
29
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-ubuntu-x64.tar.gz",
|
|
30
|
+
"checksum": "3c7eed853f5d07a35c6e7e72735d473c08d8f0c414ab95b90f8bd9aeca3ad4f0"
|
|
31
31
|
},
|
|
32
32
|
"linux-ia32": {
|
|
33
|
-
"name": "dugite-native-v2.
|
|
34
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
|
35
|
-
"checksum": "
|
|
33
|
+
"name": "dugite-native-v2.53.0-6981a1f-ubuntu-x86.tar.gz",
|
|
34
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-ubuntu-x86.tar.gz",
|
|
35
|
+
"checksum": "de201aa366f20fcceff3c1ce7b19ca92777963a475241c9e94d846d4bff39992"
|
|
36
36
|
},
|
|
37
37
|
"linux-arm": {
|
|
38
|
-
"name": "dugite-native-v2.
|
|
39
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
|
40
|
-
"checksum": "
|
|
38
|
+
"name": "dugite-native-v2.53.0-6981a1f-ubuntu-arm.tar.gz",
|
|
39
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-ubuntu-arm.tar.gz",
|
|
40
|
+
"checksum": "90bcc12028a62ee7f87949142e91e44cb2fdef7b864740ac2bd1d37d46a5e834"
|
|
41
41
|
},
|
|
42
42
|
"linux-arm64": {
|
|
43
|
-
"name": "dugite-native-v2.
|
|
44
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
|
45
|
-
"checksum": "
|
|
43
|
+
"name": "dugite-native-v2.53.0-6981a1f-ubuntu-arm64.tar.gz",
|
|
44
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.53.0/dugite-native-v2.53.0-6981a1f-ubuntu-arm64.tar.gz",
|
|
45
|
+
"checksum": "165b909437c1a9669ed989bd6ca6cfc2dcd9bc56d36760b6006cba5f2be7925c"
|
|
46
46
|
}
|
|
47
47
|
}
|