From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 62F181F62D for ; Fri, 6 Jul 2018 12:36:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932876AbeGFMge (ORCPT ); Fri, 6 Jul 2018 08:36:34 -0400 Received: from mout.gmx.net ([212.227.15.15]:52297 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932648AbeGFMgd (ORCPT ); Fri, 6 Jul 2018 08:36:33 -0400 Received: from [192.168.0.129] ([37.201.195.74]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LgYuT-1fwATn1O1V-00nyBF; Fri, 06 Jul 2018 14:36:26 +0200 Date: Fri, 6 Jul 2018 14:36:10 +0200 (DST) From: Johannes Schindelin X-X-Sender: virtualbox@gitforwindows.org To: Pratik Karki cc: git@vger.kernel.org, christian.couder@gmail.com, sbeller@google.com, alban.gruin@gmail.com, gitster@pobox.com Subject: Re: [PATCH v3 2/4] rebase: refactor common shell functions into their own file In-Reply-To: <20180706120815.17851-3-predatoramigo@gmail.com> Message-ID: References: <20180628074655.5756-1-predatoramigo@gmail.com> <20180706120815.17851-1-predatoramigo@gmail.com> <20180706120815.17851-3-predatoramigo@gmail.com> User-Agent: Alpine 2.21.1 (DEB 209 2017-03-23) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Provags-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RJmyjRyH/Mk1vCZEfbJOURT6T8STJsPoLhD+QH oZSrSKr Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Hi Pratik, On Fri, 6 Jul 2018, Pratik Karki wrote: > The functions present in `git-legacy-rebase.sh` are used by the rebase > backends as they are implemented as shell script functions in the > `git-rebase--` files. > > To make the `builtin/rebase.c` work, we have to provide support via > a Unix shell script snippet that uses these functions and so, we > want to use the rebase backends *directly* from the builtin rebase > without going through `git-legacy-rebase.sh`. > > This commit extracts the functions to a separate file, > `git-rebase--common`, that will be read by `git-legacy-rebase.sh` and > by the shell script snippets which will be used extensively in the > following commits. Good. While this seems to catch all the functions required by the backends, I am fairly certain that the `resolvemsg` variable is used exclusively by the backends, and it should therefore also moved into `git-rebase--common`. See my comments on your https://github.com/git/git/pull/505 for more details. Ciao, Dscho