Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 665 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 665 Bytes

darcs-log-utils

Utility methods for parsing darcs changes output

Installation

  npm install git-log-utils
  

Usage

DarcsLogUtils = require('darcs-log-utils')

DarcsLogUtils.getFileCommitHistory(fileName)

Returns an array of javascript objects representing the commits that effected the requested file with line stats, that looks like this:

[{
  "hash": "84b7bd17809b9dd805af7228787acfa194d0da08",
  "authorName": "[email protected]",
  "authorDate": 1450881433,
  "message": "docs all work again after refactoring to bumble-build",
  "body": "",
  "linesAdded": 2,
  "linesDeleted": 2
}, {
  ...
}]