Comparing version 0.8.1 to 0.9.0
## Small print | ||
Author: Gleb Bahmutov Copyright © 2013 [uTest](http://www.utest.com/) | ||
Author: Gleb Bahmutov © 2015 | ||
* [@utest](https://twitter.com/utest) | ||
* [utest.com](http://utest.com) | ||
* [engineering blog](http://eng.utest.com/) | ||
* [@bahmutov](https://twitter.com/bahmutov) | ||
* [glebbahmutov.com](http://glebbahmutov.com) | ||
* [blog](http://glebbahmutov.com/blog/) | ||
@@ -9,0 +9,0 @@ License: [MIT](MIT-License.txt) - do anything with the code, but don't blame uTest if it does not work. |
@@ -11,4 +11,2 @@ # {%= name %} v{%= version %} | ||
## MIT License | ||
{%= _.doc("./MIT-License.txt") %} | ||
{%= _.doc("./docs/footer.md") %} |
# API | ||
{%= _.doc("./docs/cloneRepo.md") %} | ||
{%= _.doc("./docs/exec.md") %} | ||
{%= _.doc("./docs/blame.md") %} | ||
{%= _.doc("./docs/is-tracked.md") %} | ||
{%= _.doc("./docs/has-changes.md") %} | ||
{%= _.doc("./docs/commit.md") %} | ||
{%= _.doc("./docs/push.md") %} | ||
{%= _.doc("./docs/commits.md") %} | ||
{%= _.doc("./docs/tracked-files.md") %} | ||
{%= _.doc("./docs/commit-per-line.md") %} |
@@ -13,3 +13,4 @@ var getOneLineLog = require('./src/get-one-line-log'); | ||
commits: require('./src/commits'), | ||
trackedFiles: require('./src/tracked-source-files') | ||
trackedFiles: require('./src/tracked-source-files'), | ||
commitPerLine: require('./src/commit-per-line') | ||
}; | ||
@@ -16,0 +17,0 @@ |
{ | ||
"name": "ggit", | ||
"description": "Local promise-returning git command wrappers", | ||
"version": "0.8.1", | ||
"version": "0.9.0", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
@@ -6,0 +6,0 @@ "bin": { |
@@ -1,2 +0,2 @@ | ||
# ggit v0.8.1 | ||
# ggit v0.9.0 | ||
@@ -36,3 +36,2 @@ > Local promise-returning git command wrappers | ||
### exec | ||
@@ -49,3 +48,2 @@ | ||
### blame | ||
@@ -77,3 +75,2 @@ | ||
### isTracked | ||
@@ -93,3 +90,2 @@ | ||
### hasChanges | ||
@@ -107,3 +103,2 @@ | ||
### commit | ||
@@ -122,3 +117,2 @@ | ||
### push | ||
@@ -136,3 +130,2 @@ | ||
### commits | ||
@@ -160,3 +153,2 @@ | ||
### trackedFiles | ||
@@ -178,5 +170,33 @@ | ||
### commitPerLine | ||
Returns an object where for each key (filename) there is a list of commits for each line. | ||
* path | ||
```js | ||
var perLine = require('ggit').commitPerLine; | ||
perLine(['foo.js', 'bar.js']).then(function (result) { | ||
/* | ||
{ | ||
'foo.js': [{ | ||
commit: '3c6b01eb3c96db1cbdf277904545107ef97cbb56', | ||
author: 'Gleb Bahmutov', | ||
committer: 'Gleb Bahmutov', | ||
summary: 'cool commit', | ||
filename: 'foo.js', | ||
line: '// actual source line' | ||
}, | ||
... | ||
}], | ||
'bar.js': [...] | ||
} | ||
*/ | ||
}); | ||
``` | ||
## Development | ||
@@ -194,25 +214,17 @@ | ||
## MIT License | ||
### Small print | ||
Copyright 2013 Gleb Bahmutov <gleb.bahmutov@gmail.com> | ||
https://github.com/bahmutov/ggit.git | ||
Author: Gleb Bahmutov © 2015 | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
* [@bahmutov](https://twitter.com/bahmutov) | ||
* [glebbahmutov.com](http://glebbahmutov.com) | ||
* [blog](http://glebbahmutov.com/blog/) | ||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
License: [MIT](MIT-License.txt) - do anything with the code, but don't blame uTest if it does not work. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
Spread the word: tweet, star on github, etc. | ||
Support: if you find any problems with this module, email / tweet / open | ||
[issue on Github](https://github.com/bahmutov/ggit/issues) | ||
{ | ||
"/Users/gleb/git/ggit/src/test/is-file-tracked.js": { | ||
"name": "/Users/gleb/git/ggit/src/test/is-file-tracked.js", | ||
"/Users/gleb/git/ggit/src/test/commit-per-line.js": { | ||
"name": "/Users/gleb/git/ggit/src/test/commit-per-line.js", | ||
"coverage": 100 | ||
}, | ||
"/Users/gleb/git/ggit/src/is-file-tracked.js": { | ||
"name": "/Users/gleb/git/ggit/src/is-file-tracked.js", | ||
"/Users/gleb/git/ggit/src/commit-per-line.js": { | ||
"name": "/Users/gleb/git/ggit/src/commit-per-line.js", | ||
"coverage": 100 | ||
}, | ||
"/Users/gleb/git/ggit/src/blame.js": { | ||
"name": "/Users/gleb/git/ggit/src/blame.js", | ||
"coverage": 80 | ||
}, | ||
"/Users/gleb/git/ggit/src/exec.js": { | ||
"name": "/Users/gleb/git/ggit/src/exec.js", | ||
"coverage": 87 | ||
"coverage": 63 | ||
} | ||
} |
@@ -8,3 +8,4 @@ require('qunit-promises'); | ||
QUnit.test('index file is tracked', function (assert) { | ||
assert.will(isTracked(join(__dirname, '../../index.js')) | ||
var filename = join(__dirname, '../../index.js'); | ||
assert.will(isTracked(filename) | ||
.then(function (result) { | ||
@@ -17,3 +18,4 @@ console.log('is index.js tracked?', result); | ||
QUnit.test('node_modules folder is not tracked', function (assert) { | ||
assert.will(isTracked(join(__dirname, '../../node_modules')) | ||
var dirname = join(__dirname, '../../node_modules'); | ||
assert.will(isTracked(dirname) | ||
.then(function (result) { | ||
@@ -20,0 +22,0 @@ console.log('is node_modules tracked?', result); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
588836
93
1562
221