Comparing version 0.1.0 to 0.1.1
@@ -220,3 +220,3 @@ var spawn = require( "child_process" ).spawn; | ||
var rBlame = /^(\w+)(\s(\S+))?\s+(\d+)\)\s(.*)$/; | ||
var rBlame = /^(\^?\w+)(\s(\S+))?\s+(\d+)\)\s(.*)$/; | ||
@@ -231,5 +231,12 @@ args.push(function( error, blame ) { | ||
var matches = rBlame.exec( line ); | ||
var commit = matches[ 1 ]; | ||
var boundary = /^\^/.test( commit ); | ||
if ( boundary ) { | ||
commit = commit.substring( 1 ); | ||
} | ||
return { | ||
commit: matches[ 1 ], | ||
boundary: boundary, | ||
path: matches[ 3 ] || options.path, | ||
@@ -236,0 +243,0 @@ lineNumber: parseInt( matches[ 4 ], 10 ), |
{ | ||
"name": "git-tools", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Tools for parsing data out of git repositories.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -165,2 +165,3 @@ # node-git-tools | ||
* `commit`: SHA of commit that most recently modified the line. | ||
* `boundary`: Boolean indicating whether the commit is a boundary for the range. | ||
* `path`: Path to the file at the time of the most recent modification to the line. | ||
@@ -167,0 +168,0 @@ * `lineNumber`: Line number within the file. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17578
332
267