git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] have commit-id dereference git tags

From
MPMatt Porter <mporter@kernel.crashing.org>
Date
May 5, 2005, 21:14 UTC
Message-ID
<20050505141444.B10541@cox.net>
In-Reply-To
<20050505074823.GA9075@fatelectrons.org>
On Thu, May 05, 2005 at 12:48:23AM -0700, Alexander Beyn wrote:
Show 8 quoted lines
> With this patch, if commit-id is passed a git tag, it will check to see
> if the tag points to a commit. If it does, commit-id will return that
> commit's id.
> 
> I'm not sure if this is the proper place to handle git tags, but it does
> make things like "cg-diff -r v2.6.12-rc2:v2.6.12-rc3" work in the Linus
> kernel tree. I've not noticed any problems this introduces, but I didn't 
> do a thorough check.

I like this feature and it works on the Linus tree for me as well. However, it fails on the cogito tree as follows:

mporter@beef:~/src/cogito$ cg-diff -r git-pasky-0.7:cogito-0.8 .git/objects/c8/3b95297c2a6336c2007548f909769e0862b509: No such file or directory fatal: git-cat-file c83b95297c2a6336c2007548f909769e0862b509: bad file Invalid id: c83b95297c2a6336c2007548f909769e0862b509 usage: git-cat-file [-t | tagname] <sha1> usage: git-cat-file [-t | tagname] <sha1> Invalid id:

I haven't looked any further at it yet though.
-Matt
Previous: Alexander Beyn
Message 2 of 2 in “have commit-id dereference git tags”
  1. have commit-id dereference git tagsAlexander Beyn, May 5, 2005
  2. Matt PorterMay 5, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.