@@ -27,15 +27,15 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
2727 } )
2828 . then ( function ( ) {
2929 var newFiles = index . entries ( ) . filter ( function ( entry ) {
30- return ~ fileNames . indexOf ( entry . path ( ) ) ;
30+ return ~ fileNames . indexOf ( entry . path ) ;
3131 } ) ;
3232
3333 console . log (
3434 "\n-------------------\n" +
3535 "Added files: " +
3636 "\n-------------------\n" ) ;
3737 newFiles . forEach ( function ( entry ) {
38- console . log ( entry . path ( ) ) ;
38+ console . log ( entry . path ) ;
3939 } ) ;
4040 } )
4141 . then ( function ( ) {
@@ -44,7 +44,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
4444 } )
4545 . then ( function ( ) {
4646 var newFiles = index . entries ( ) . filter ( function ( entry ) {
47- return ~ fileNames . indexOf ( entry . path ( ) ) ;
47+ return ~ fileNames . indexOf ( entry . path ) ;
4848 } ) ;
4949
5050 console . log ( "New files in index: " + newFiles . length ) ;
@@ -58,15 +58,15 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
5858 } )
5959 . then ( function ( ) {
6060 var newFiles = index . entries ( ) . filter ( function ( entry ) {
61- return ~ fileNames . indexOf ( entry . path ( ) ) ;
61+ return ~ fileNames . indexOf ( entry . path ) ;
6262 } ) ;
6363
6464 console . log (
6565 "\n-------------------\n" +
6666 "Added files with pattern: " +
6767 "\n-------------------\n" ) ;
6868 newFiles . forEach ( function ( entry ) {
69- console . log ( entry . path ( ) ) ;
69+ console . log ( entry . path ) ;
7070 } ) ;
7171 } )
7272 . then ( function ( ) {
@@ -75,7 +75,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
7575 } )
7676 . then ( function ( ) {
7777 var newFiles = index . entries ( ) . filter ( function ( entry ) {
78- return ~ fileNames . indexOf ( entry . path ( ) ) ;
78+ return ~ fileNames . indexOf ( entry . path ) ;
7979 } ) ;
8080
8181 console . log ( "New files in index: " + newFiles . length ) ;
@@ -99,15 +99,15 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
9999 } )
100100 . then ( function ( ) {
101101 var newFiles = index . entries ( ) . filter ( function ( entry ) {
102- return ~ fileNames . indexOf ( entry . path ( ) ) ;
102+ return ~ fileNames . indexOf ( entry . path ) ;
103103 } ) ;
104104
105105 console . log (
106106 "\n-------------------\n" +
107107 "Added files with callback: " +
108108 "\n-------------------\n" ) ;
109109 newFiles . forEach ( function ( entry ) {
110- console . log ( entry . path ( ) ) ;
110+ console . log ( entry . path ) ;
111111 } ) ;
112112 } )
113113 . then ( function ( ) {
@@ -122,7 +122,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
122122 } )
123123 . then ( function ( ) {
124124 var newFiles = index . entries ( ) . filter ( function ( entry ) {
125- return ~ fileNames . indexOf ( entry . path ( ) ) ;
125+ return ~ fileNames . indexOf ( entry . path ) ;
126126 } ) ;
127127
128128 console . log ( "Total: " + index . entries ( ) . length ) ;
0 commit comments