Created
December 13, 2015 11:40
-
-
Save vgaltes/468be9aeb97952305551 to your computer and use it in GitHub Desktop.
Extracting the commit line info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type CommitLineCsv = CsvProvider<"LinesAdded\tLinesDeleted\tFile", HasHeaders = false, Schema = "LinesAdded(int option),LinesDeleted(int option),FileName"> | |
let extractCommitedFilesInfo c = | |
let commitFileLine = CommitLineCsv.Parse(c).Rows |> Seq.head | |
{LinesAdded = commitFileLine.LinesAdded; LinesDeleted = commitFileLine.LinesDeleted; FileName = commitFileLine.FileName} | |
let fileRows = fileLines |> Array.map extractCommitedFilesInfo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment