Category "git-hash"

Given long git commit how to safely get short commit

If I query the bitbucket api for commits, I get the long version: bitbucket_curl(){ curl -H 'Authorization:Basic YW1JyKg==' "https://api.bitbucket.org$@" }

Given long git commit how to safely get short commit

If I query the bitbucket api for commits, I get the long version: bitbucket_curl(){ curl -H 'Authorization:Basic YW1JyKg==' "https://api.bitbucket.org$@" }

Given long git commit how to safely get short commit

If I query the bitbucket api for commits, I get the long version: bitbucket_curl(){ curl -H 'Authorization:Basic YW1JyKg==' "https://api.bitbucket.org$@" }