threads / discuss / 22277

git describe --contains

Subject: git describe --contains

## tl;dr

2 messages between Jan 18, 2010 and Jan 19, 2010.

replies: 1people: 2as markdown or json

John Tapsell· Jan 18, 2010, 23:37 UTC · lore
Hi all,
Doing:   git describe --contains SHA

on a SHA that is not contained by any tags gives a confusing error message that it cannot describe the SHA. Could this error message be changed please to just say something like "SHA1 is not in any tags."

Ramkumar Ramachandra· Jan 19, 2010, 07:11 UTC · re: John Tapsell · lore

Re: git describe --contains

> Doing:   git describe --contains SHA

The problem resides in builtin-describe.c:377. It uses cmd_name_rev from builtin- name-rev.c. I'm attempting to rewrite this, and have a describe_contains() - Hopefully, I'll get a patch out by the end of the day.

← back to recent threads