1- var git = require ( "../" ) ;
1+ var NodeGit = require ( "../" ) ;
22
3- git . Object . Type = {
4- Any : - 2 , /**< Object can be any of the following */
5- Bad : - 1 , /**< Object is invalid. */
3+ var Obj = NodeGit . Object ;
4+
5+ Obj . Type = {
6+ Any : - 2 , /**< Obj can be any of the following */
7+ Bad : - 1 , /**< Obj is invalid. */
68 Ext1 : 0 , /**< Reserved for future use. */
79 Commit : 1 , /**< A commit object. */
810 Tree : 2 , /**< A tree (directory listing) object. */
@@ -17,30 +19,32 @@ git.Object.Type = {
1719 * Is this object a commit?
1820 * @return {Boolean }
1921 */
20- git . Object . prototype . isCommit = function ( ) {
21- return this . type ( ) == git . Object . Type . Commit ;
22+ Obj . prototype . isCommit = function ( ) {
23+ return this . type ( ) == Obj . Type . Commit ;
2224} ;
2325
2426/**
2527 * Is this object a tree?
2628 * @return {Boolean }
2729 */
28- git . Object . prototype . isTree = function ( ) {
29- return this . type ( ) == git . Object . Type . Tree ;
30+ Obj . prototype . isTree = function ( ) {
31+ return this . type ( ) == Obj . Type . Tree ;
3032} ;
3133
3234/**
3335 * Is this object a blob?
3436 * @return {Boolean }
3537 */
36- git . Object . prototype . isBlob = function ( ) {
37- return this . type ( ) == git . Object . Type . Blob ;
38+ Obj . prototype . isBlob = function ( ) {
39+ return this . type ( ) == Obj . Type . Blob ;
3840} ;
3941
4042/**
4143 * Is this object a tag?
4244 * @return {Boolean }
4345 */
44- git . Object . prototype . isTag = function ( ) {
45- return this . type ( ) == git . Object . Type . Tag ;
46+ Obj . prototype . isTag = function ( ) {
47+ return this . type ( ) == Obj . Type . Tag ;
4648} ;
49+
50+ module . exports = Obj ;
0 commit comments