From mboxrd@z Thu Jan 1 00:00:00 1970 From: Duy Nguyen Subject: Re: [PATCH 5.5/22] Add documentation for the index api Date: Thu, 11 Jul 2013 19:27:25 +0700 Message-ID: References: <1373184720-29767-1-git-send-email-t.gummerer@gmail.com> <1373184720-29767-6-git-send-email-t.gummerer@gmail.com> <87pputqowr.fsf@gmail.com> <871u78rcw0.fsf@gmail.com> <87wqozpk9s.fsf@gmail.com> <87ppupcp19.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Git Mailing List , Thomas Rast , Michael Haggerty , Junio C Hamano , Robin Rosenberg To: Thomas Gummerer X-From: git-owner@vger.kernel.org Thu Jul 11 14:28:01 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UxFya-0005L7-TU for gcvg-git-2@plane.gmane.org; Thu, 11 Jul 2013 14:28:01 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755818Ab3GKM14 (ORCPT ); Thu, 11 Jul 2013 08:27:56 -0400 Received: from mail-oa0-f52.google.com ([209.85.219.52]:50999 "EHLO mail-oa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755418Ab3GKM14 (ORCPT ); Thu, 11 Jul 2013 08:27:56 -0400 Received: by mail-oa0-f52.google.com with SMTP id g12so11214606oah.11 for ; Thu, 11 Jul 2013 05:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=21asHfU7EV7r2Sk11fzXcYzGReneix2SAdKRvJqtdeA=; b=xZUFTr0QRBBiPXnGQHRzQVveBARCLQnMDEUT8+Y09B8nhqGz+LLPTgWttm/Iv0lfcP AOKPqsNrwVFqV+W+G4GwjFXqihJe0YZ7k/MGgPXTZSg2Pr40JVpn1fdioL/hRrTvPz+8 X2+JGp8HGZfoWgbttp0vYJfpGM+KnKbr9VRWTv/R5j1Mfc0+75TPoyFoWiqGeO9EUohj 0JreinJHmP8A77RVkn99nDiU+l5c7OYfVdByoLIclv6IsM4B/Rj1UWpJplIJYD/XMwPb ScSb3GrGVz5wdSe3zXYvTMPvv/hF82J0evYDfePib+U/B3eUxGW/zQtiM2I5pv186yJq pcSg== X-Received: by 10.182.215.133 with SMTP id oi5mr31617585obc.83.1373545675496; Thu, 11 Jul 2013 05:27:55 -0700 (PDT) Received: by 10.76.88.230 with HTTP; Thu, 11 Jul 2013 05:27:25 -0700 (PDT) In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, Jul 11, 2013 at 6:42 PM, Duy Nguyen wrote: > On Thu, Jul 11, 2013 at 6:30 PM, Thomas Gummerer wrote: >> Duy Nguyen writes: >> Hrm, I played around a bit with this idea, but I couldn't figure out how >> to make it work. For it to work we would still have to load some >> entries in a directory at least? Or is there a way to match the >> directories, which I just haven't figured out yet? > > Yes you have to load some entries first. Even if a directory does not > match, we only know until at least the first file in the directory. OK > there might be problems because tree_entry_interesting expects all > entries in a directory to be memcmp sorted, without trailing slash for > subdirectories. I need to check again if v5 sort order is compatible.. Not gonna work (at least not simple) because we have to mix directories and files again. The way directory entries are ordered makes it hard (or less efficient) to get the list of immediate subdirs of a dir. I think I understand now why you need adjusted_pathspec.. -- Duy