From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id A5B611F9E0 for ; Thu, 30 Apr 2020 17:33:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726418AbgD3RdC (ORCPT ); Thu, 30 Apr 2020 13:33:02 -0400 Received: from dcvr.yhbt.net ([64.71.152.64]:57718 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726285AbgD3RdC (ORCPT ); Thu, 30 Apr 2020 13:33:02 -0400 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 683DC1F9E0; Thu, 30 Apr 2020 17:33:02 +0000 (UTC) Date: Thu, 30 Apr 2020 17:33:02 +0000 From: Eric Wong To: Konstantin Ryabitsev Cc: git@vger.kernel.org Subject: Re: Guess the base-commit of a series Message-ID: <20200430173302.GA18877@dcvr> References: <20200430172147.3fblnrvi73asnkp5@chatter.i7.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200430172147.3fblnrvi73asnkp5@chatter.i7.local> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Konstantin Ryabitsev wrote: > Hello: > > Given a/ b/ filenames and blob index information, is there a relatively > easy way to find the latest branch commit where a patch series would > apply cleanly (i.e. guess the base-commit)? Not as far as I know... Indexing git repos to store a reverse mapping of blobs => commits/trees/tags is something I've been planning as part of public-inbox (for the "solver" subcomponent which recreates blobs from patch mails, I want it to recreate trees). I'm not sure if/when I'll get around to it; and it's space-intensive with Xapian, too.