Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 119145e2e4
Fetching contributors…

Cannot retrieve contributors at this time

executable file 32 lines (27 sloc) 0.517 kb
# Find large files in git repo, that dont exist in HEAD
if (( $# != 1 ))
then
echo $0 SIZE
exit
fi
declare -A big_files
big_files=()
echo printing results
while read commit
do
while read bits type sha size path
do
if (( size > $1 ))
then
big_files[$sha]="$sha $size $path"
fi
done < <(git ls-tree --abbrev -rl $commit)
done < <(git rev-list HEAD)
for file in "${big_files[@]}"
do
read sha size path <<< "$file"
if git ls-tree -r HEAD | grep -q $sha
then
echo $file
fi
done
Jump to Line
Something went wrong with that request. Please try again.