From patchwork Mon Jan 27 10:09:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zeger-Jan van de Weg X-Patchwork-Id: 11352369 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F3C5A14B4 for ; Mon, 27 Jan 2020 10:17:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DCE1D208CD for ; Mon, 27 Jan 2020 10:17:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726858AbgA0KRB (ORCPT ); Mon, 27 Jan 2020 05:17:01 -0500 Received: from unsecure-smtp.soverin.net ([94.130.159.241]:48472 "EHLO g02sm02.soverin.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725990AbgA0KRB (ORCPT ); Mon, 27 Jan 2020 05:17:01 -0500 Received: from soverin.net by soverin.net From: Zeger-Jan van de Weg To: git@vger.kernel.org Cc: Zeger-Jan van de Weg Subject: [PATCH v2 0/1] config: read instructions from stdin Date: Mon, 27 Jan 2020 11:09:32 +0100 Message-Id: <20200127100933.10765-1-git@zjvandeweg.nl> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at g02sm02 X-Virus-Status: Clean Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org This patch is a continuation of my previous work on `git config --add --stdin`.[1] In the review it was noted that the approach could be more extensible by using a DSL or instruction set like `update-ref`. Like the previous patch, it hides input from the system allowing to set secrets in the config file more securely. [1]: https://public-inbox.org/git/20190917133135.190145-1-git@zjvandeweg.nl/T/#m287ad04b3dec77269643e35698df7fe4eb2f4f4f Zeger-Jan van de Weg (1): config: learn the --stdin option for instructions Documentation/git-config.txt | 29 ++++++++++ builtin/config.c | 104 +++++++++++++++++++++++++++++++++++ t/t1300-config.sh | 60 ++++++++++++++++++++ 3 files changed, 193 insertions(+)