Skip to content

Instantly share code, notes, and snippets.

@vgaltes
Last active December 13, 2015 11:26
Show Gist options
  • Save vgaltes/0ceb2a2889aea26fbc0e to your computer and use it in GitHub Desktop.
Save vgaltes/0ceb2a2889aea26fbc0e to your computer and use it in GitHub Desktop.
let isCommitInfoLine (line: string) =
line.StartsWith("[")
let commitLines = commit.Split([|lineBreak|], StringSplitOptions.RemoveEmptyEntries)
let commitInfoLine = commitLines |> Array.takeWhile(isCommitInfoLine) |> Array.last
let fileLines = commitLines |> Array.skipWhile(isCommitInfoLine)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment