From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.help Subject: Re: Reviewing versioned backups Date: Sun, 28 Mar 2021 11:23:36 +0200 Message-ID: <87h7kvocmf.fsf@posteo.net> References: <87a6qvat9v.fsf@posteo.net> <87y2e8t8nh.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30014"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 28 11:24:09 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 1lQReS-0007ge-De for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 11:24:08 +0200 Original-Received: from localhost ([::1]:48458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQReR-0003RO-DW for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 05:24:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQRe5-0003R3-1W for help-gnu-emacs@gnu.org; Sun, 28 Mar 2021 05:23:45 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:36176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQRe2-00012x-1x for help-gnu-emacs@gnu.org; Sun, 28 Mar 2021 05:23:44 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id E9D48160062 for ; Sun, 28 Mar 2021 11:23:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1616923418; bh=+J2d8YiNlt260sEG0Esh9MQayEu/VqLYREr0e4qMq1I=; h=From:To:Cc:Subject:Date:From; b=mxHuebkPy2O9D38UuiR7wNyS6G3vX/jq298wtL+eFXpr5NLCHbD9xRotjP0LBqFpA TKCjn/aCRUixcEzgME1cXcbJSqyKVLLttDTpMuxvx3GK1ZADdYtJaaIzSctchiPahl hXthRjoJPGr2yf9HOSMgqisiRJ61wBwR7rv3lSvSvE4KqN5QzJPDIYZ/qVVVRtLu0n 0ztj79zShOm1I9+Nw1cpUXACG6GHRCVcij/eudhSsRqAT3ASnO6QSTo0+U/PGnqa6Q hMVq4QhGbE/x5crrB1OneIC252OROJz7OUhXxs6PEDoaPm+8L5T3awX4ZQo7O1Lf9C Rnj9wEGpleg4g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4F7Vd51BNhz6tmH; Sun, 28 Mar 2021 11:23:37 +0200 (CEST) In-Reply-To: <87y2e8t8nh.fsf@web.de> (Michael Heerdegen's message of "Sun, 28 Mar 2021 01:38:10 +0100") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=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:128731 Archived-At: Michael Heerdegen writes: > 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. This is interesting, but doesn't ~git~ fit my use-case, as I don't always use Git as my VCS and I use a lot of unversioned files. But thank you for the pointer, it might come in handy at some point in time! -- Philip K.