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-Status: No, score=-3.8 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 91D3C1F990 for ; Fri, 7 Aug 2020 08:04:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726578AbgHGIEh (ORCPT ); Fri, 7 Aug 2020 04:04:37 -0400 Received: from dcvr.yhbt.net ([64.71.152.64]:45606 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgHGIEg (ORCPT ); Fri, 7 Aug 2020 04:04:36 -0400 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 83B321F990; Fri, 7 Aug 2020 08:04:36 +0000 (UTC) Date: Fri, 7 Aug 2020 08:04:36 +0000 From: Eric Wong To: Philippe Blain Cc: Jeff King , Jacob Keller , git@vger.kernel.org Subject: Re: avoiding fetching specific refs from a remote Message-ID: <20200807080436.GA21342@dcvr> References: <20200805063704.GA2690083@coredump.intra.peff.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Philippe Blain wrote: > > Le 5 août 2020 à 02:37, Jeff King a écrit : > > This is definitely a reasonable thing to want, and it has come up off > > and on over the years. One search term for the list archive is "negative > > refspecs", though it turns up a lot of useless hits when the two words > > are not directly adjacent. > > I tried searching "negative refspecs" (*with* the double quotes) and I get 20 results so it > seems to work. Although interestingly it doesn't find this message you wrote I'm responding to > because "negative" and "refspec" are on separate lines... I'm CC-ing Eric in case he knows more > about this limitation. Initially I thought it was phrase searching being disabled on lore (Xapian 1.2, "chert" backend). However, I just tried on lore and it shows Jeff's message from 2020-08-05 6:37 UTC: https://lore.kernel.org/git/?q=%22negative+refspecs%22 So maybe it was a delay due to Xapian's MVCC mechanism; but that shouldn't be HOURS off (maybe minutes at most), assuming you tried to search shortly before you sent the message I'm replying to at 22:12 UTC... My v1 instance at public-inbox.org (which uses Xapian 1.4 and the "glass" backend) shows it, too: https://public-inbox.org/git/?q=%22negative+refspecs%22 You could also try NEAR and ADJ (I don't have much experience with those): https://xapian.org/docs/queryparser.html