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=-4.0 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, 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 8030C1F9FD for ; Thu, 25 Feb 2021 05:37:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235141AbhBYFdb (ORCPT ); Thu, 25 Feb 2021 00:33:31 -0500 Received: from dcvr.yhbt.net ([64.71.152.64]:48054 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233192AbhBYFdX (ORCPT ); Thu, 25 Feb 2021 00:33:23 -0500 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 863F81F9FD; Thu, 25 Feb 2021 05:32:40 +0000 (UTC) Date: Thu, 25 Feb 2021 05:32:40 +0000 From: Eric Wong To: Stef Bon Cc: git@vger.kernel.org Subject: Re: FUSE fs for git. Message-ID: <20210225053240.GA10230@dcvr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Stef Bon wrote: > - is there an api I can use (lowlevel and/or highlevel or whatever is > available)? I've used "git cat-file --batch" in many places via pipes. Git.pm provides a convenient interface for it. It handles requests like "$REFNAME:$PATHNAME" so it'd be pretty easy to map FS-like paths to it. "git fast-import" is also nice if you need write access and nowadays has "cat-blob" functionality similar to the aforementioned --batch.