[releng] Issue #5986: write script to get all git commits used to build a package