Skip to content

Instantly share code, notes, and snippets.

@vgaltes
Created December 19, 2015 17:33
Show Gist options
  • Save vgaltes/ee3702b54a742f46cbee to your computer and use it in GitHub Desktop.
Save vgaltes/ee3702b54a742f46cbee to your computer and use it in GitHub Desktop.
Number of revisions
let numberOfRevisions =
totalCommits
|> Array.collect(fun c -> c.Files)
|> Array.groupBy(fun f -> f.FileName)
|> Array.map ( fun c -> fst c, (snd c).Length)
|> Array.sortByDescending ( fun c -> snd c)
-------------------------------------------------------
val numberOfRevisions : (string * int) [] =
[|("src/SFA.Apprenticeships.Web.Candidate/SFA.Apprenticeships.Web"+[17 chars],
386); ("src/SFA.Apprenticeships.sln", 214);
("src/SFA.Apprenticeships.Web.Candidate/Web.config", 176);
("src/SFA.Apprenticeships.Web.Candidate.UnitTests/SFA.Apprentic"+[37 chars],
139);
("src/SFA.Apprenticeships.Web.Candidate/Content/_assets/css/main-ie8.css",
134);
("src/SFA.Apprenticeships.Web.Candidate/Content/_assets/css/main.css", 133);
("src/SFA.Apprenticeships.Web.Candidate/Providers/CandidateServ"+[14 chars],
123); ...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment