Adding an autogenerated version for linking a binary to a git revision

(cherry picked from commit 258dd91443e042e0e18fb15dad0ac9e004ff710b)