Skip to content

Instantly share code, notes, and snippets.

@branflake2267
Last active March 25, 2020 15:24
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save branflake2267/6682aae06d98c1eb388fd6ca01982899 to your computer and use it in GitHub Desktop.
Save branflake2267/6682aae06d98c1eb388fd6ca01982899 to your computer and use it in GitHub Desktop.
Flutter gource visualization commands. Visualizing the commit history with gource.
#!/bin/sh
# gource
# https://gource.io/
# flutter
# https://github.com/flutter
# 1. clone or git pull all repos
# 2. build logs
gource --output-custom-log log1.txt /Users/branflake2267/git/flutter
gource --output-custom-log log2.txt /Users/branflake2267/git/flutter-engine
gource --output-custom-log log3.txt /Users/branflake2267/git/flutter-intellij
cat log1.txt log2.txt log3.txt | sort -n > combined.txt
# 3. create visualization from logs
gource combined.txt --bloom-intensity .001 --seconds-per-day 0.001 --auto-skip-seconds 1 --title "Flutter (repos: flutter, flutter-engine, flutter-intellij) 3/18/2017" --hide dirnames,filenames -2560x1440 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource2.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment