Skip to content

Commit 74ec7c7

Browse files
author
John Haley
committed
Bump to 0.15.0
1 parent 9abbfc0 commit 74ec7c7

File tree

110 files changed

+392
-107
lines changed

Some content is hidden

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

110 files changed

+392
-107
lines changed

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ title: NodeGit
33
description: Asynchronous native Node bindings to libgit2
44
url: "http://nodegit.org"
55
date_format: "ordinal"
6-
current_nodegit_version: 0.14.0
6+
current_nodegit_version: 0.15.0
77
other_nodegit_versions:
88
- HEAD
9+
- 0.14.0
910
- 0.13.2
1011
- 0.13.1
1112
- 0.13.0

api/annotated_commit/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
menu_item: api
44
title: AnnotatedCommit
5-
description: Version 0.14.0
5+
description: Version 0.15.0
66
menu_item: api
77
return_to:
88
"API Documentation Index": /api/

api/attr/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
menu_item: api
44
title: Attr
5-
description: Version 0.14.0
5+
description: Version 0.15.0
66
menu_item: api
77
return_to:
88
"API Documentation Index": /api/

api/blame/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
menu_item: api
44
title: Blame
5-
description: Version 0.14.0
5+
description: Version 0.15.0
66
menu_item: api
77
return_to:
88
"API Documentation Index": /api/

api/blame_hunk/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
menu_item: api
44
title: BlameHunk
5-
description: Version 0.14.0
5+
description: Version 0.15.0
66
menu_item: api
77
return_to:
88
"API Documentation Index": /api/

api/blame_options/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
menu_item: api
44
title: BlameOptions
5-
description: Version 0.14.0
5+
description: Version 0.15.0
66
menu_item: api
77
return_to:
88
"API Documentation Index": /api/

api/blob/index.md

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
layout: default
33
menu_item: api
44
title: Blob
5-
description: Version 0.14.0
5+
description: Version 0.15.0
66
menu_item: api
77
return_to:
88
"API Documentation Index": /api/
99
sections:
1010
"createFromBuffer": "#createFromBuffer"
1111
"createFromDisk": "#createFromDisk"
12+
"createFromStream": "#createFromStream"
1213
"createFromWorkdir": "#createFromWorkdir"
14+
"createFromstreamCommit": "#createFromstreamCommit"
1315
"lookup": "#lookup"
1416
"lookupPrefix": "#lookupPrefix"
1517
"#content": "#content"
18+
"#dup": "#dup"
1619
"#filemode": "#filemode"
1720
"#free": "#free"
1821
"#id": "#id"
@@ -55,6 +58,23 @@ var result = Blob.createFromDisk(id, repo, path);
5558
| --- | --- |
5659
| Number | 0 or an error code |
5760

61+
## <a name="createFromStream"></a><span>Blob.</span>createFromStream <span class="tags"><span class="async">Async</span></span>
62+
63+
```js
64+
Blob.createFromStream(repo, hintpath).then(function(writestream) {
65+
// Use writestream
66+
});
67+
```
68+
69+
| Parameters | Type | |
70+
| --- | --- | --- |
71+
| repo | [Repository](/api/repository/) | Repository where the blob will be written. This repository can be bare or not. |
72+
| hintpath | String | If not NULL, will be used to select data filters to apply onto the content of the blob to be created. |
73+
74+
| Returns | |
75+
| --- | --- |
76+
| [Writestream](/api/writestream/) | the stream into which to write |
77+
5878
## <a name="createFromWorkdir"></a><span>Blob.</span>createFromWorkdir <span class="tags"><span class="sync">Sync</span></span>
5979

6080
```js
@@ -71,6 +91,22 @@ var result = Blob.createFromWorkdir(id, repo, relative_path);
7191
| --- | --- |
7292
| Number | 0 or an error code |
7393

94+
## <a name="createFromstreamCommit"></a><span>Blob.</span>createFromstreamCommit <span class="tags"><span class="async">Async</span></span>
95+
96+
```js
97+
Blob.createFromstreamCommit(stream).then(function(oid) {
98+
// Use oid
99+
});
100+
```
101+
102+
| Parameters | Type | |
103+
| --- | --- | --- |
104+
| stream | [Writestream](/api/writestream/) | the stream to close |
105+
106+
| Returns | |
107+
| --- | --- |
108+
| [Oid](/api/oid/) | the id of the new blob |
109+
74110
## <a name="lookup"></a><span>Blob.</span>lookup <span class="tags"><span class="async">Async</span></span>
75111

76112
```js
@@ -120,6 +156,18 @@ Retrieve the content of the Blob.
120156
| --- | --- |
121157
| Buffer | Contents as a buffer. |
122158

159+
## <a name="dup"></a><span>Blob#</span>dup <span class="tags"><span class="async">Async</span></span>
160+
161+
```js
162+
blob.dup().then(function(blob) {
163+
// Use blob
164+
});
165+
```
166+
167+
| Returns | |
168+
| --- | --- |
169+
| [Blob](/api/blob/) | |
170+
123171
## <a name="filemode"></a><span>Blob#</span>filemode <span class="tags"><span class="sync">Sync</span></span>
124172

125173
```js

api/branch/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
menu_item: api
44
title: Branch
5-
description: Version 0.14.0
5+
description: Version 0.15.0
66
menu_item: api
77
return_to:
88
"API Documentation Index": /api/

api/buf/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
menu_item: api
44
title: Buf
5-
description: Version 0.14.0
5+
description: Version 0.15.0
66
menu_item: api
77
return_to:
88
"API Documentation Index": /api/

api/cert/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
menu_item: api
44
title: Cert
5-
description: Version 0.14.0
5+
description: Version 0.15.0
66
menu_item: api
77
return_to:
88
"API Documentation Index": /api/

0 commit comments

Comments
 (0)