FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Library changes. · nodejs-experiments/nodegit@18dd146 · GitHub

Repository navigation

Commit 18dd146

Browse files
committed
Library changes.
1 parent c47abd9 commit 18dd146

6 files changed

Lines changed: 23 additions & 294 deletions

File tree

‎lib/diff_list.js‎

Lines changed: 0 additions & 53 deletions
This file was deleted.

‎lib/reference.js‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
var git = require('../'),
2-
Reference = git.Reference;
2+
Reference = git.Refs;
3+
4+
// Backwards compatibility.
5+
Object.defineProperty(git, "Reference", {
6+
value: Reference,
7+
enumerable: false
8+
});
39

410
var oldSymbolicTarget = Reference.prototype.symbolicTarget,
511
oldTarget = Reference.prototype.target;
@@ -54,4 +60,4 @@ Reference.prototype.target = function() {
5460
*/
5561
Reference.prototype.toString = function() {
5662
return this.name();
57-
}
63+
}

lib/repo.js renamed to lib/repository.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
var git = require('../'),
22
util = require('./util.js'),
3-
Repo = git.Repo,
3+
Repo = git.Repository,
44
Tree = git.Tree,
55
TreeBuilder = git.TreeBuilder,
66
Reference = git.Reference;
77

8+
// Backwards compatibility.
9+
Object.defineProperty(git, "Repo", {
10+
value: Repo,
11+
enumerable: false
12+
});
13+
814
var oldGetReference = Repo.prototype.getReference,
915
oldGetCommit = Repo.prototype.getCommit,
1016
oldBlob = Repo.prototype.getBlob,
@@ -217,4 +223,4 @@ Repo.prototype.treeBuilder = function(callback) {
217223
builder.root = builder;
218224
builder.repo = this;
219225
return builder;
220-
};
226+
};

‎lib/revwalk.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
var git = require('../'),
2-
RevWalk = git.RevWalk;
2+
RevWalk = git.Revwalk;
3+
4+
// Backwards compatibility.
5+
Object.defineProperty(git, "RevWalk", {
6+
value: RevWalk,
7+
enumerable: false
8+
});
39

410
var oldSorting = RevWalk.prototype.sorting;
511

‎lib/tree_builder.js‎

Lines changed: 0 additions & 144 deletions
This file was deleted.

‎lib/tree_entry.js‎

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL