From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#51497: 29.0.50; (vc-print-log) broken over TRAMP Date: Mon, 8 Nov 2021 20:30:55 +0300 Message-ID: <5bbcd838-45a3-3d1d-5dd8-d58a0e8be4dc@yandex.ru> References: <877ddv9ue0.fsf@jpl.nasa.gov> <87tugyptju.fsf@gnus.org> <87tugy8h3a.fsf@secretsauce.net> <87pmrl8yhy.fsf@secretsauce.net> <60fea707-a9b2-d9f4-cc45-ffd4539887b6@yandex.ru> <87o87253sv.fsf@secretsauce.net> <60af7952-d702-d40f-928e-1320e6d9520f@yandex.ru> <83f40a2a-ae5a-2c6c-cf6a-44ff7c933d16@yandex.ru> <831r3tb7un.fsf@gnu.org> <7e04f090-81de-d5bd-746c-7f09ed0c38b0@yandex.ru> <83lf219i3u.fsf@gnu.org> <86r1btvsso.fsf@gmail.com> <86ilx4x4xv.fsf@gmail.com> <1f17978c-0498-a19b-6bb0-6f316a536f8e@yandex.ru> <83h7coa2cs.fsf@gnu.org> <92da67f0-9133-98ba-69e3-7408fab30539@yandex.ru> <83o86u7qxg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21915"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: 51497@debbugs.gnu.org, andrewjmoreton@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 08 18:32:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mk8VB-0005UD-2D for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Nov 2021 18:32:13 +0100 Original-Received: from localhost ([::1]:60478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mk8V9-000364-0b for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Nov 2021 12:32:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mk8V0-00035t-Ih for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 12:32:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mk8V0-00044k-9t for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 12:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mk8V0-0004S7-2g for bug-gnu-emacs@gnu.org; Mon, 08 Nov 2021 12:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Nov 2021 17:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51497 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 51497-submit@debbugs.gnu.org id=B51497.163639267217043 (code B ref 51497); Mon, 08 Nov 2021 17:32:02 +0000 Original-Received: (at 51497) by debbugs.gnu.org; 8 Nov 2021 17:31:12 +0000 Original-Received: from localhost ([127.0.0.1]:59310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mk8UB-0004Qp-Nc for submit@debbugs.gnu.org; Mon, 08 Nov 2021 12:31:12 -0500 Original-Received: from mail-lf1-f45.google.com ([209.85.167.45]:45771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mk8U8-0004Qa-GR for 51497@debbugs.gnu.org; Mon, 08 Nov 2021 12:31:10 -0500 Original-Received: by mail-lf1-f45.google.com with SMTP id f3so37857099lfu.12 for <51497@debbugs.gnu.org>; Mon, 08 Nov 2021 09:31:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=f6PTZrUAxZf89x1EojrrlewqDf6KKl8GQRHmDfqnKy8=; b=BzX79RBSOw883yZ4TkG2qxTahiPOthrkNLHe4T20A7n3EK0cHW12DGEaORfRvqCD8Z LqFy9ft2jonDWNKdUOguMDcgbQ4aX79j8dQDpmT2PDd5SgN4avzlyPtNlFDGgSb7CEvk sqh9DEV8CBMsxqsQbz4A7FgW8TevoEJnedQmusARbEltRTZlxEHWdDDThWwruY4KUCBT C6jOEFQ5dLf1yA2S1eB1i6ZfhqwHmgtmp2FWBi0/45l+J08cgeXwOj6Ptav6fFzJeKrG jfXtBKMT2pjVwfScMyDPMTTixxBarJQdmtCvs13oa09gWbsbIv2Qj+ZY+WxDLRiU9laE PPLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=f6PTZrUAxZf89x1EojrrlewqDf6KKl8GQRHmDfqnKy8=; b=ma5Eye32uH8BYAKK1iB0x/2Xy+MxbkcVwYAEYU3rYph99bOUQev3alP4KQ3iiPfySi kg3sTzp2hyO0if/fnJ1JstxfgfYrr5VOnnslXVUBCy3a7CUayV3XHPRkQod52tx0bzjs pNl8V+qfd3SN+tSzCV4+mV/DSgraY7mbZd9R5gb5RkhzYXaqCg46L+jirDcS4i/hfZld 4N+kwEBVOJ4kz2Jws5tshgN5eX66s3NJWJtoI/P70gH42iwLDFVTyWAfBpxKQVLL62Wa iBAwLgqiImBBA3oLwHYg7zLsd0CoTMSkAx9t4GgseBHhB9uXMfIHLvk3YdcP17E4guag 86pQ== X-Gm-Message-State: AOAM533Wl9ecqH23gWkISz+barXtdIh1p5YvduvuTX+QRE4snMbdBHAM 03MEzB+5RDmyM06Ephug+ZY= X-Google-Smtp-Source: ABdhPJw1jqAe9arLWBOnJipRgLbtpk7Eb2dWip8i1x9sNuBc0/OySlMeeJclPHSts/0fXPS7TIdlgA== X-Received: by 2002:a05:6512:3f90:: with SMTP id x16mr879372lfa.392.1636392662368; Mon, 08 Nov 2021 09:31:02 -0800 (PST) Original-Received: from [192.168.0.103] ([5.18.235.131]) by smtp.googlemail.com with ESMTPSA id p3sm764499lfg.273.2021.11.08.09.31.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Nov 2021 09:31:01 -0800 (PST) In-Reply-To: <83o86u7qxg.fsf@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219365 Archived-At: On 08.11.2021 15:49, Eli Zaretskii wrote: >> Cc: 51497@debbugs.gnu.org, andrewjmoreton@gmail.com >> From: Dmitry Gutov >> Date: Mon, 8 Nov 2021 01:36:18 +0300 >> >>> Why wasn't --literal-pathspecs used in the first place? what are the >>> downsides? IME, using magic file names is always worse, because it >>> can run afoul of various shells that consider some characters special. >> >> It wasn't among the proposed solutions. >> >> I went with the env var solution initially (because it required less >> code and brought fewer -- none -- Git version compatibility problems), >> but it didn't yield itself as easily to the per-action opt-in as the >> other proposal (currently installed). >> >> But now that I think about it, it would be possible to do this without a >> new macro, just adding a new variable that default to nil, and set it to >> t in every backend method that needs it. > > But would that solve our problems for which :(literal) was introduced? > AFAIU, the difference between that and --literal-pathspecs is that the > latter is global: it affects all the file names of the Git command, > while the former can be applied only to some file names. Both can be used per-command, but indeed it's true: the :(literal) syntax can also be used to apply to individual specs only. >Do we have > valid use cases where only some of the file names need to be treated > as literal? Even though it's plausible, I haven't encountered this particular use case so far. Perhaps when we do, we could mix-and-match :(literal) and --literal-pathspecs.