Re: Trouble with cat-file on tags

2016-04-01 Thread Jeff King
On Fri, Apr 01, 2016 at 12:00:44PM +0200, Sebastian Schuberth wrote: > This means > > $ git cat-file tag refs/tags/v0.1.2 > > displays the *contents* of the tag, not the tag itself. Right. `cat-file` is about looking at object content. > Which leads me to > the next question: For a given name

Re: Trouble with cat-file on tags

2016-04-01 Thread Sebastian Schuberth
On 4/1/2016 11:32, Sebastian Schuberth wrote: However, I still get information about the commit oject iintsead of the tag object. Is this expected? Solved this one, too: Yes it is. I was misreading the docs: "If is specified, the raw (though uncompressed) contents of the will be

Re: Trouble with cat-file on tags

2016-04-01 Thread Sebastian Schuberth
On 4/1/2016 11:26, Sebastian Schuberth wrote: ---8<--- $ git tag test-tag $ git tag -l test-tag v0.0.3 v0.0.4 v0.1.0 v0.1.1 v0.1.2 $ git cat-file tag refs/tags/test-tag fatal: git cat-file refs/tags/test-tag: bad file ---8<--- Alright, I just found out why that is: Lighweight tags are not

Trouble with cat-file on tags

2016-04-01 Thread Sebastian Schuberth
Hi, I was trying to use cat-file to get the hash of a tag object (not the hash of the commit object the tag points to), and I'm running into some issues. At the example of a cloned gerry [1] repository: ---8<--- $ git tag test-tag $ git tag -l test-tag v0.0.3 v0.0.4 v0.1.0 v0.1.1 v0.1.2 $