From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-2.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 3CA631FA7B for ; Fri, 16 Jun 2017 15:47:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750863AbdFPPrt (ORCPT ); Fri, 16 Jun 2017 11:47:49 -0400 Received: from mail-pg0-f45.google.com ([74.125.83.45]:36545 "EHLO mail-pg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780AbdFPPrs (ORCPT ); Fri, 16 Jun 2017 11:47:48 -0400 Received: by mail-pg0-f45.google.com with SMTP id u62so2773788pgb.3 for ; Fri, 16 Jun 2017 08:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=89vSxFxVYWlwO6pme371su+e/jKUNp7I6dcOZrmX5sY=; b=EU7N15f/Ee31poHZExriPboyMoEEj9Ik0Ewk3u/BmZP1a8YZnIk4w6OMW6cGXkWpAY NlgjDJZxW/hioFaZ7d6Lx78qJU8jVpB4Q0mXoBdn6JAEDkGzonkcOzYtlVdvTZbxCLBN PHvokHCRbWSjEXksA66a2NlfNWRv25CExsfO4J+RgYHXR5pPNljKddKOxYlnQyprp2Ky Mxrz8dS8GFneN3Lw/LNfiftfR+2ZXgtDXYuUidjAmONBjn+9uCQ5XEx2lfHdz82fT/h1 qhMVkwddobGlpSn3dHiJ8p2xo6nZFgnURrdQxkXG7eHVKUWV83jg/Sva6XMfMVxXMaaM ZqUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=89vSxFxVYWlwO6pme371su+e/jKUNp7I6dcOZrmX5sY=; b=GZVPxQ7p7CivhOGlMA0m4xljY5PYwjj+yFrqSz9/g0mt5esBVFPUpVbdkJHs7h1nMy OoY0pbSlFabf26u7772cZVnzWbbUExwDkLj3n5WQx+Me64i3tPNXyeg+7cCt6jz7QdVe TD1oees43aWfjvV4anOZTFhTundAAEzUNhUcahKxLdjlSNus2g22P4bUXy0VngKWDWs6 7Aheijqf2xWl1GJWaWF6qEvfGOR6qiq7safdi4vAL8KSH5Or8QxlyH+OgsQsy1YAHePq w4xZGDs3LqZvot/QRJHFdGQNktvcIND0ySWsslgAFusIPpAYGnhNJnnJ4UcK4vT++FZI EvBQ== X-Gm-Message-State: AKS2vOyx8CRfoD6Zf+325LwACD0gMc4u1ipTzfPwVQyYL98bFWxoMg1X 6glzI/tncOAO8T1bdNg6yT+znn5UVxJQ X-Received: by 10.101.76.201 with SMTP id n9mr12144764pgt.40.1497628067767; Fri, 16 Jun 2017 08:47:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.218.134 with HTTP; Fri, 16 Jun 2017 08:47:47 -0700 (PDT) In-Reply-To: References: From: Stefan Beller Date: Fri, 16 Jun 2017 08:47:47 -0700 Message-ID: Subject: Re: [PATCH 15/28] packed_peel_ref(): new function, extracted from `files_peel_ref()` To: Michael Haggerty Cc: Junio C Hamano , =?UTF-8?B?Tmd1eeG7hW4gVGjDoWkgTmfhu41jIER1eQ==?= , Jeff King , =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= , David Turner , Brandon Williams , "git@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Thu, Jun 15, 2017 at 11:46 PM, Michael Haggerty wrote: > On 06/16/2017 07:42 AM, Stefan Beller wrote: >> On Thu, Jun 15, 2017 at 7:47 AM, Michael Haggerty wrote: >>> This will later become a method of `packed_ref_store`. >> >> Also while touching it, maybe rename sha1 to object_hash >> (not saying object_id as that would be confusing with the actual >> oid struct), maybe? > > Hmmm, my impression was that most of the `unsigned char *` hashes are > still called sha1, and they are renamed to `oid` at the moment that they > are converted to `struct object_id *`. I only see two instances of the > string "object_hash" in the code: > > $ git grep object_hash > object.c:static void grow_object_hash(void) > object.c: grow_object_hash(); > > Michael Yeah maybe we can just defer it to the proper conversion series. I just jumped the gun here.