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: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 5F6841F461 for ; Fri, 21 Jun 2019 20:52:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726138AbfFUUwl (ORCPT ); Fri, 21 Jun 2019 16:52:41 -0400 Received: from cloud.peff.net ([104.130.231.41]:47290 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1725985AbfFUUwl (ORCPT ); Fri, 21 Jun 2019 16:52:41 -0400 Received: (qmail 18287 invoked by uid 109); 21 Jun 2019 20:52:42 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with SMTP; Fri, 21 Jun 2019 20:52:42 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 26294 invoked by uid 111); 21 Jun 2019 20:53:30 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.94) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) SMTP; Fri, 21 Jun 2019 16:53:30 -0400 Authentication-Results: peff.net; auth=none Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Fri, 21 Jun 2019 16:52:39 -0400 Date: Fri, 21 Jun 2019 16:52:39 -0400 From: Jeff King To: Junio C Hamano Cc: Duy Nguyen , Johannes Schindelin , Git Mailing List Subject: Re: [PATCH 0/8] Add 'ls-files --json' to dump the index in json Message-ID: <20190621205238.GD25874@sigill.intra.peff.net> References: <20190619095858.30124-1-pclouds@gmail.com> <20190619191709.GF28145@sigill.intra.peff.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Fri, Jun 21, 2019 at 08:10:58AM -0700, Junio C Hamano wrote: > Duy Nguyen writes: > > > Considering the amount of code to output these, supporting multiple > > formats would be a nightmare. I may be ok with versioning the output > > so the tool know what format they need to deal with, but I'd rather > > support just one version. For third parties wanting to dig deep, I > > think libgit2 would be a much better fit. > > Yeah, I think starting with --debug=json (or --debug-json) until we > see some stability in the output and got comfortable to the idea of > "version X" to mean what we output at that point, and then renaming > it to "--json" with "version: 1" in the output stream so that third > party can use it (and interpret it according to version 1 rules) is > the way to go. Third-party tools are welcome to read --debug-json > output as an early-adoption practice waiting for the real thing, but > we do not want to be locked into a schema too eary before we are > ready. I should have read the whole thread before responding. I made a similar comment to Dscho, so I guess that is now two of us. :) -Peff