From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Reviewing versioned backups Date: Sun, 28 Mar 2021 01:38:10 +0100 Message-ID: <87y2e8t8nh.fsf@web.de> References: <87a6qvat9v.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1854"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Philip Kaludercic Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 28 01:38:45 2021 Return-path: Envelope-to: geh-help-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 1lQJS1-0000OJ-45 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 01:38:45 +0100 Original-Received: from localhost ([::1]:58688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQJS0-0002jv-5t for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 20:38:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQJRY-0002jo-BP for help-gnu-emacs@gnu.org; Sat, 27 Mar 2021 20:38:16 -0400 Original-Received: from mout.web.de ([212.227.15.4]:51045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQJRW-0005Gd-NI for help-gnu-emacs@gnu.org; Sat, 27 Mar 2021 20:38:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1616891892; bh=Ue3ED816RrxIkN0FQqlk5QzqzXrGrjdyvIU2FqJpb2g=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=bTi1jb70CNKbgto8l/r/wCnHBesHXyBLIv1pvHGTK5cBZuohuTadEbgZbcB7GtTOE 0GRP5LCQmZzSloo94amO6gxsbdlx84Xs36XWJfyvj/dsUpr83p/atusm0ikClOq9dL 7CToq4OMlx99xi2KDwxqvX4YzyDLu22Lz5bZaOTY= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([188.98.109.231]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N9431-1lkDtT04et-016544; Sun, 28 Mar 2021 01:38:12 +0100 In-Reply-To: <87a6qvat9v.fsf@posteo.net> (Philip Kaludercic's message of "Mon, 22 Mar 2021 20:21:48 +0100") X-Provags-ID: V03:K1:pHkXfjd0JvQSl8fPEd9a+gb8DeEuA3XmD9lrqHklGYQe1Ippq3u ncosH1mk2vGa/9Yd4LyQDZL0w4xlOhnVK8V2gXUNV3rCR9bXeUPBeSW7onn0r8XIEJ9xXaT VaAYP1pBlIqYFWeVcBqhoRPUu6bf7hDHMFVmkCHCy/dA5zZW3U3kbmzNmFGNp+9ztgy8cS3 zQ73rv+QOT+6MSVig8ZPg== X-UI-Out-Filterresults: notjunk:1;V03:K0:GUcNiw2Hj+8=:V1oYUtFq4qIoFO0cY7I+kP uJGoLH6SXTfhr/duKEmtq1shbAUI8zhyvXH7ssHnoZQ01UdV2jNmHqBRt0ztlGMIap9NeSJtJ qB+ZbIggm7glSIVuwoZzpvjYmRq5G8v4kDRTRdaS9zzkH4n3H7lnVR/7hm3yrHsivLJ9KTYmU jfPG/grBVJvEYao4sJPtV99LxGbCnT9c2mWzXVGaKfdLf5DL5zkG7JvSLdwhQlRVCofGBIRYF bpLZTW+XSmaXaaUnkKQSjGYuVil0ss55+Fed+i28p5na7mcbU73rVk3cme430lEibt3FTPKMx FAAbwWKbrKtyLXuNWXxATp3KbcDK4ilXrsom92s4WJw3DGH4b7I6imJD2YB3ECvmKyB7VwVCf y8Szr091rVUI0boLDPYjf5H7U60E7KP5Ft1Rfujjk4LsW7g7WRkCHwikKARutebO8AF5/JVN3 uq2cChUSdGkYNpu7U4daKNxqGIFh3ShpizjQiOV/Nw1y92wuOaWjp7b6CaxgxPwx1zyvhO7+w Ju/81UUOJPkTlIhYQVEcVSIA0IiJYKOiUwYgrt1BHZMafP/YnV+9XxR5NjaLubxNA5lSPhJSK 8IFHUl45s7tyvYRF+Rj9aVEmPZ8eEfpgkXpeNP5jzmuROrR1TYvKNtrt/YMWixvDKZgyIdwXe H9NrHmZ6WEp4ZKuAUna9Q1dUMgZNj0mctM7gslJz5E3Et63SXMADpgp1+SBYnBy1pssc3YyZv NcqOVlKrMkP1ZCn/DgU1k9dxuhCDX/TjV2xm5A3DoZuAHzv7hKZevwcZNiN00EtetEBLl+jV Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128729 Archived-At: Philip Kaludercic writes: > I have been using version-control for years now, but have always > wondered if there was a better way to review previous versions besides > just going into your backup directory and manually comparing them. Is > there maybe a vc backend that uses the backup information? Or has > someone written some code to make it easier that they would care to > share? Magit has the "wip" modes that do more or less exactly that if your VCS is Git. Once set up, backups are created automatically before and/or after each save (or at will). They are saved in a chain of commits under a special reference name derived from your current branch's name. Big advantage: Git handles backups and you can do all the cool things like adding tags and annotations; Git can use delta compression to avoid wasting disk space, and all of this stuff. One disadvantage currently: When you accidentally wip-commit something you didn't want to (e.g. a very large file or something containing passwords), you currently need to repair that accident using lowest-level git commands unless you can live with resetting the whole history to a prior state. But apart from that, it works conveniently, there are log commands for your wip commits and such things etc. Michael.