Add git commit to the version output. (#900)
Now the output would be: ``` ./coredns -version CoreDNS-010 linux/amd64, go1.8, 241e3dbc ``` In case the local file has been modified, then the output would be (with --dirty): ``` ./coredns -version CoreDNS-010 linux/amd64, go1.8, 241e3dbc-dirty ``` Signed-off-by:Yong Tang <yong.tang.github@outlook.com>
Showing
Please register or sign in to comment