Use git_object_short_id in examples

Hey guys, now that #2178 is merged, use `git_object_short_id` in the examples.