From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Beller Subject: Re: [RFC PATCHv4] repack: rewrite the shell script in C. Date: Tue, 20 Aug 2013 17:08:54 +0200 Message-ID: <52138686.1070304@googlemail.com> References: <1376864786-21367-1-git-send-email-stefanbeller@googlemail.com> <1376954619-24314-1-git-send-email-stefanbeller@googlemail.com> <52136F9C.6030308@kdbg.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6EB502F7271FDD1C1B265B4E" Cc: git@vger.kernel.org, l.s.r@web.de, mfick@codeaurora.org, apelisse@gmail.com, Matthieu.Moy@grenoble-inp.fr, pclouds@gmail.com, iveqy@iveqy.com, gitster@pobox.com, mackyle@gmail.com To: Johannes Sixt X-From: git-owner@vger.kernel.org Tue Aug 20 17:09:06 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 1VBnYP-000896-8E for gcvg-git-2@plane.gmane.org; Tue, 20 Aug 2013 17:09:06 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751252Ab3HTPJA (ORCPT ); Tue, 20 Aug 2013 11:09:00 -0400 Received: from mail-ee0-f41.google.com ([74.125.83.41]:45938 "EHLO mail-ee0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111Ab3HTPI7 (ORCPT ); Tue, 20 Aug 2013 11:08:59 -0400 Received: by mail-ee0-f41.google.com with SMTP id d17so267614eek.14 for ; Tue, 20 Aug 2013 08:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=RcKWs9r9K/IjO6rjFU+dl9bg1tfu81s3kqx2M2EapLI=; b=kMFfgHhZbgJJ7GB1t0xWRTxvqesqSPBLajItKi7WnuZblb86dvGueUrtKqhBwQKLBv 2+8cbA8ecVsNUSp2EzGmtPUCP0El4SuHSJEPRM1pY76PMOKtvGnMIs/4jh7FDZ3lJe5n mA3o5QP4Kie3daRv5Vwcp9hO2/+Nax0qZH24tdvNQe5WkK0w07I4qJDi8co5vPtdOe9B NSfJw2DlJ7sukFKN0wX5K7c8kFPGZbFld4cCUwFkXjk9iUtp1+Iwprlftt7EY/mz3757 bGel4zLmk0EffL6U8DY3Io1422IGm73s+k8rvHuUU/BQ1DewEb8CMufwKvGxQVwXPWiR xRiw== X-Received: by 10.14.1.131 with SMTP id 3mr2938720eed.57.1377011338512; Tue, 20 Aug 2013 08:08:58 -0700 (PDT) Received: from [192.168.1.3] (ip-109-91-109-128.unitymediagroup.de. [109.91.109.128]) by mx.google.com with ESMTPSA id t6sm2997197eel.12.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Aug 2013 08:08:57 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 In-Reply-To: <52136F9C.6030308@kdbg.org> X-Enigmail-Version: 1.4.6 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6EB502F7271FDD1C1B265B4E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/20/2013 03:31 PM, Johannes Sixt wrote: >=20 > Are the long forms of options your invention? I tried to keep strong similarity with the shell script for ease of review. In the shellscript the options where=20 put in variables having these names, so for example there was: -f) no_reuse=3D--no-reuse-delta ;; -F) no_reuse=3D--no-reuse-object ;; So I used these variable names as well in here. And as I assumed the variables are meaningful in itself. In the shell script they may be meaningful, but with the option parser in the C version, I overlooked the possibility for=20 --no-