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.devel Subject: Re: master 4803fba487 1/2: 'C-x v v' on a diff buffer commits it as a patch (bug#52349) Date: Wed, 31 Aug 2022 19:24:28 +0300 Message-ID: References: <166171593185.16640.41619657947456727@vcs2.savannah.gnu.org> <20220828194533.23A6BC00889@vcs2.savannah.gnu.org> <87r10znm0y.fsf@gnus.org> <83fshfvvyn.fsf@gnu.org> <999d1cb2-6b7f-8020-5202-e919278d895e@yandex.ru> <877d2pnqup.fsf@yahoo.com> <86zgfknc9a.fsf@mail.linkov.net> <87sflc91q7.fsf@gnus.org> <87wnao7l74.fsf@gnus.org> <0d5679a1-7635-53db-51c7-0ac0e35325d8@yandex.ru> <87mtbke7wf.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36857"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Cc: Juri Linkov , Po Lu , "Alfred M. Szmidt" , eliz@gnu.org, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 31 18:27:10 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oTQYX-0009Sn-Qg for ged-emacs-devel@m.gmane-mx.org; Wed, 31 Aug 2022 18:27:09 +0200 Original-Received: from localhost ([::1]:39956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTQYW-0008Ug-HB for ged-emacs-devel@m.gmane-mx.org; Wed, 31 Aug 2022 12:27:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTQWe-0005dq-21 for emacs-devel@gnu.org; Wed, 31 Aug 2022 12:25:13 -0400 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:36566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTQWc-00011S-9E; Wed, 31 Aug 2022 12:25:11 -0400 Original-Received: by mail-wr1-x436.google.com with SMTP id bu22so18629126wrb.3; Wed, 31 Aug 2022 09:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc; bh=Vt1Zp8b9XXZWVUVypTDPJ6PCuMLTV7f17huvBCBmi2Q=; b=YOHZ7Q+OVxiP+05CHSWrD0J+hw15TqT6SeL2VUrYWbtL7KUYQmDg5c5ih0vvJvdnKu fHa4fyHfBwTJI2UkzzfRyMVyd4BUVRASo4THWqvH7rpEFUoaI/FpBY27u0eb1rKoaeHD CFAlesCdFCwyy+xDX3jkshJk+kY9FE5QvqONmgRr/+/AlCs7jyqKJKHZ96Tlqq+49aMQ hjUH5rgEVqklWhg0cO5o9reUuSYUrmwqjtAr0Xdvjzz8Ef3aFmnHE/hgMoRZY9ZIsmpO 3lvi3u+pclCRiF/ccTUb+6Sx17Gx1AvzQoDMHaTTuoE4TcUOHjrX+5TpUu7XwDu2PYgf 8gUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc; bh=Vt1Zp8b9XXZWVUVypTDPJ6PCuMLTV7f17huvBCBmi2Q=; b=o3hgzrj0t+ksAYQqrVDpOduOrbgCSDs7hLgEwR/QKx6dw5BuH/7zEqJKbT2jdaSeKU ctVQEsortst7bRy9yLUax0EUI9ZRfl8e94Ks9OwZQO9I0/RP5Tsl0eUZt8EvUNrDhyTn npwXbqj8W2VFzaIRCWS5HHs6shlYViZ9hZ0cGnPIes+M34Slg/Pv93jhMGnodQQA8sY9 G3TgPwJyF8OJQG8RHUlwLB/r5cqUnxN5Icbw5e0zSQ/Ol+Z93g4ZUZw9oOFdVJUhgnr/ QMCqYlxlkKyxW51aZTDXcXj0yFRiWX3XyUC3UIMFT8010iDe5Blxj9+4jouynwzuBCbG zBqw== X-Gm-Message-State: ACgBeo1lWx3/fUPqnZBPgaTdkC6ezVjNvwwqxA63OuVMgeQQwykIPNU5 ePUDd59zFu4IORl4uOoz8jU= X-Google-Smtp-Source: AA6agR5c/+c3nA6SFXwZTrwxi99saOQwrHo8AOATQ8TSmP93UNaV6yN4UoZz83mgRFEbFmS3QAGtZA== X-Received: by 2002:a5d:5252:0:b0:226:cf08:4080 with SMTP id k18-20020a5d5252000000b00226cf084080mr12045243wrc.8.1661963071754; Wed, 31 Aug 2022 09:24:31 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id k27-20020a05600c1c9b00b003a845fa1edfsm7983762wms.3.2022.08.31.09.24.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Aug 2022 09:24:30 -0700 (PDT) Content-Language: en-US In-Reply-To: <87mtbke7wf.fsf@gnus.org> Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=raaahh@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, GAPPY_SUBJECT=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:294438 Archived-At: On 31.08.2022 18:42, Lars Ingebrigtsen wrote: > Dmitry Gutov writes: > >> A "hidden" directory under the project root is one option. > It occurs to me that if we (i.e., you 😀) do this, you've almost I prefer "we" in this case. ;-) > implemented a general mechanism for stashing, so it'd be great if that > was implemented fully. I.e., stashing the files somewhere handy, and > give the stash a name, and there you are. (In this case the name would > be automatically generated, of course.) I don't use stashing commands from VC myself, but the stash mechanism is usually more complex, e.g. it usually knows how to merge changes (when the user has edited the file in some place and then pops the stash) and indicate conflicts. That's why a stash is usually represented as a diff, I guess.