Add new files.
This commit is contained in:
12
bsp/scripts/git_list_huge_files.sh
Executable file
12
bsp/scripts/git_list_huge_files.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
git rev-list master | while read rev; do git ls-tree -lr $rev | cut -c54- | grep -v '^ '; done | sort -u | perl -e '
|
||||
while (<>) {
|
||||
chomp;
|
||||
@stuff=split("\t");
|
||||
$sums{$stuff[1]} += $stuff[0];
|
||||
}
|
||||
print "$sums{$_} $_\n" for (keys %sums);
|
||||
' | sort -rn >> large_files.txt
|
||||
more large_files.txt
|
||||
|
||||
Reference in New Issue
Block a user