git_describe_options.show_commit_oid_as_fallback

If no matching tag or reference is found, the describe operation would normally fail. If this option is set, it will instead fall back to showing the full id of the commit.

struct git_describe_options
int show_commit_oid_as_fallback;

Meta