Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Parses the output from a "git log --format=raw -- [file]" operation
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
gitlogparser.js

README.md

Git Log Parser in JavaScript

This module takes in the output from a "git log --format=raw -- [file]" operation, parses it and places details into a hash that is then pushed onto an array. This happens for each line.

Usage

var GitLogParser = require("gitlogparser");
var gitLogParser = new GitLogParser();

// Run the git log operation and get a string back

var gLogOut = "[all output]";

gitLogParser.parseLog(gLogOut);

// Get the results of the parsing
var parseResult = gitLogParser.getLogData();

From here you can iterate over each item in the array and do something with it.

Something went wrong with that request. Please try again.