Skip to content

Instantly share code, notes, and snippets.

View andrewsolomon's full-sized avatar

Andrew Solomon andrewsolomon

View GitHub Profile
@andrewsolomon
andrewsolomon / gitlog2graph.pl
Created April 15, 2019 06:01
Transforming a git repository into a co-modification graph
#!/usr/bin/perl
# Converts a gitlog file to a list of edges in an undirected weighted graph
# Author: Aron Lurie
# Date: 2018-08-15
# Usage: git log --pretty=oneline --name-only | perl git.pl > mylogfile.txt
my @files = ();
my %adjacent = ();
while (<STDIN>) {