Skip to content

Commit ff1b8ad

Browse files
committed
update docs to 0.7.0
1 parent 65adc48 commit ff1b8ad

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
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.6.3
6+
current_nodegit_version: 0.7.0
77
other_nodegit_versions:
88
- HEAD
9+
- 0.6.3
910
- 0.6.2
1011
- 0.6.1
1112
- 0.6.0

api/convenient_line/index.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,82 +32,82 @@ The relevant line
3232
## <a name="contentLen"></a><span>ConvenientLine#</span>contentLen <span class="tags"><span class="sync">Sync</span></span>
3333

3434
```js
35-
var string = convenientLine.contentLen();
35+
var number = convenientLine.contentLen();
3636
```
3737

38-
The content of the line
38+
Number of bytes in the string
3939

4040
| Returns | |
4141
| --- | --- |
42-
| String | |
42+
| Number | |
4343

4444
## <a name="contentOffset"></a><span>ConvenientLine#</span>contentOffset <span class="tags"><span class="sync">Sync</span></span>
4545

4646
```js
47-
var string = convenientLine.contentOffset();
47+
var number = convenientLine.contentOffset();
4848
```
4949

50-
The content of the line
50+
Offset in the original file to the content
5151

5252
| Returns | |
5353
| --- | --- |
54-
| String | |
54+
| Number | |
5555

5656
## <a name="newLineno"></a><span>ConvenientLine#</span>newLineno <span class="tags"><span class="sync">Sync</span></span>
5757

5858
```js
59-
var string = convenientLine.newLineno();
59+
var number = convenientLine.newLineno();
6060
```
6161

62-
The content of the line
62+
Line number in new file or -1 for deleted line
6363

6464
| Returns | |
6565
| --- | --- |
66-
| String | |
66+
| Number | |
6767

6868
## <a name="numLines"></a><span>ConvenientLine#</span>numLines <span class="tags"><span class="sync">Sync</span></span>
6969

7070
```js
71-
var string = convenientLine.numLines();
71+
var number = convenientLine.numLines();
7272
```
7373

74-
The content of the line
74+
Number of newline characters in content
7575

7676
| Returns | |
7777
| --- | --- |
78-
| String | |
78+
| Number | |
7979

8080
## <a name="oldLineno"></a><span>ConvenientLine#</span>oldLineno <span class="tags"><span class="sync">Sync</span></span>
8181

8282
```js
83-
var string = convenientLine.oldLineno();
83+
var number = convenientLine.oldLineno();
8484
```
8585

86-
The content of the line
86+
Line number in old file or -1 for added line
8787

8888
| Returns | |
8989
| --- | --- |
90-
| String | |
90+
| Number | |
9191

9292
## <a name="origin"></a><span>ConvenientLine#</span>origin <span class="tags"><span class="sync">Sync</span></span>
9393

9494
```js
95-
var string = convenientLine.origin();
95+
var diffLine = convenientLine.origin();
9696
```
9797

98-
The content of the line
98+
The type of the line (context, addition, deletion, etc...)
9999

100100
| Returns | |
101101
| --- | --- |
102-
| String | |
102+
| [Diff.LINE](/api/diff/#LINE) | |
103103

104104
## <a name="rawContent"></a><span>ConvenientLine#</span>rawContent <span class="tags"><span class="sync">Sync</span></span>
105105

106106
```js
107107
var string = convenientLine.rawContent();
108108
```
109109

110-
The content of the line
110+
Pointer to diff text, not NUL-byte terminated
111111

112112
| Returns | |
113113
| --- | --- |

0 commit comments

Comments
 (0)