From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.176.0/21 X-Spam-Status: No, score=-3.4 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: "Marco Costalba" Subject: Re: [WISH] Store also tag dereferences in packed-refs Date: Mon, 20 Nov 2006 13:56:10 +0100 Message-ID: References: <7vbqn38831.fsf@assigned-by-dhcp.cox.net> <7vr6vy7smi.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Date: Mon, 20 Nov 2006 12:57:03 +0000 (UTC) Cc: git@vger.kernel.org Return-path: Envelope-to: gcvg-git@gmane.org DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=StO9HyrlUhfpP75I7ypNHIEHcW/qjmao300aM20ZTDGv+H/f0+atjeqi+dBFlg9OIhNrHPIf2HLVUclL/74JlY1bN5D6D76ZLsmgDh+IM8ijrLmAstAY3uRiVgqMl75VBHEqxpxXndaoFdi7Wu/XN3ff4F+ugbz5GZjk98s5G2c= In-Reply-To: Content-Disposition: inline Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gm8hd-0004Ub-A0 for gcvg-git@gmane.org; Mon, 20 Nov 2006 13:56:49 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965753AbWKTM4p (ORCPT ); Mon, 20 Nov 2006 07:56:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934155AbWKTM4p (ORCPT ); Mon, 20 Nov 2006 07:56:45 -0500 Received: from py-out-1112.google.com ([64.233.166.183]:25040 "EHLO py-out-1112.google.com") by vger.kernel.org with ESMTP id S934154AbWKTM4o (ORCPT ); Mon, 20 Nov 2006 07:56:44 -0500 Received: by py-out-1112.google.com with SMTP id a29so992696pyi for ; Mon, 20 Nov 2006 04:56:11 -0800 (PST) Received: by 10.35.93.19 with SMTP id v19mr590963pyl.1164027370175; Mon, 20 Nov 2006 04:56:10 -0800 (PST) Received: by 10.35.42.4 with HTTP; Mon, 20 Nov 2006 04:56:10 -0800 (PST) To: "Jakub Narebski" Sender: git-owner@vger.kernel.org > > > > For this particular one, there is no need for version 2. > > Actually, I think it is both true and untrue. True, because we need some > indicator that we trust packed-refs file to provide tag dereferences to > distinguish between the case when there are no tag objects at all, so there > are no tag dereferences in packed-refs, and the situation where we use > packed-refs generated by older git, and there are no tag dereferences in > packed-refs because git didn't saved it. > We should be able to handle the ambiguous/malformed lines correctly and gracefully _always_, without 'trust' a version number to avoid to be prone to attacks with a malicious malformed file. Anyway document versioning it's a common and savy practice.