# git describe --contains

2 messages from 2010-01-18 to 2010-01-19. Participants: John Tapsell, Ramkumar Ramachandra.
Thread: https://gitlist.dev/t/22277

## John Tapsell, 2010-01-18 23:37

Subject: git describe --contains
Message-ID: <43d8ce651001181537w667f71b7te7fac56b4f562c30@mail.gmail.com>
URL: https://gitlist.dev/e/43d8ce651001181537w667f71b7te7fac56b4f562c30%40mail.gmail.com

```
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, 2010-01-19 07:11

Subject: Re: git describe --contains
Message-ID: <loom.20100119T080907-579@post.gmane.org>
URL: https://gitlist.dev/e/loom.20100119T080907-579%40post.gmane.org
In-Reply-To: <43d8ce651001181537w667f71b7te7fac56b4f562c30@mail.gmail.com>

```
> 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.

```
