This file contains 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
#!/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>) { |