static int get_name(const char *path, const unsigned char *sha1, int flag, void *cb_data)
{
static int get_name(const char *path, const unsigned char *sha1, int flag, void *cb_data)
{
if (!peel_ref(path, peeled) && !is_null_sha1(peeled)) {
commit = lookup_commit_reference_gently(peeled, 1);
if (!commit)
if (!peel_ref(path, peeled) && !is_null_sha1(peeled)) {
commit = lookup_commit_reference_gently(peeled, 1);
if (!commit)
* If --tags, then any tags are used.
* Otherwise only annotated tags are used.
*/
* If --tags, then any tags are used.
* Otherwise only annotated tags are used.
*/