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

Re: Experimental "git prune"

From
Linus Torvalds <torvalds@osdl.org>
Date
Jul 5, 2006, 16:24 UTC
Message-ID
<Pine.LNX.4.64.0607050923360.12404@g5.osdl.org>
In-Reply-To
<Pine.LNX.4.63.0607050956240.29667@wbgn013.biozentrum.uni-wuerzburg.de>
On Wed, 5 Jul 2006, Johannes Schindelin wrote:
Show 23 quoted lines
> Hi,
> 
> On Tue, 4 Jul 2006, Linus Torvalds wrote:
> 
> > static void process_tag(struct tag *tag, struct object_array *p, const char *name)
> > {
> > 	struct object *obj = &tag->object;
> > 	struct name_path me;
> 
> AFAICS this variable is set, but not used:
> 
> > 
> > 	if (obj->flags & SEEN)
> > 		return;
> > 	obj->flags |= SEEN;
> > 
> > 	me.up = NULL;
> > 	me.elem = "tag:/";
> > 	me.elem_len = 5;
> > 
> > 	if (parse_tag(tag) < 0)
> > 		die("bad tag object %s", sha1_to_hex(obj->sha1));
> > 	add_object(tag->tagged, p, NULL, name);
Yeah, that NULL should be "&me".

That said, we don't actually use the object name logic at all, so we could drop it entirely. Having it _might_ allow some of the error messages to be better, who knows..

			Linus
Previous: Johannes Schindelin
Message 4 of 4 in “Experimental "git prune"”
  1. Linus TorvaldsJul 4, 2006
  2. Junio C HamanoJul 4, 2006
  3. Johannes SchindelinJul 5, 2006
  4. Linus TorvaldsJul 5, 2006

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.