all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rainer M Krug <Rainer@krugs.de>
To: Marcin Borkowski <mbork@wmi.amu.edu.pl>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Project idea: a poor man's VC backend
Date: Fri, 12 Dec 2014 09:11:35 +0100	[thread overview]
Message-ID: <m2388lcmo8.fsf@krugs.de> (raw)
In-Reply-To: <87egs66keh.fsf@wmi.amu.edu.pl> (Marcin Borkowski's message of "Thu, 11 Dec 2014 20:44:54 +0100")

[-- Attachment #1: Type: text/plain, Size: 2787 bytes --]

Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:

> On 2014-12-11, at 18:59, Eli Zaretskii wrote:
>
>>> From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
>>> Date: Thu, 11 Dec 2014 17:09:05 +0100
>>> 
>>> In a recent question on ESE
>>> (http://emacs.stackexchange.com/questions/2849/save-current-file-with-a-slightly-different-name)
>>> the topic of versioning by means of putting a timestamp into the
>>> filename came up again (it does have its place, especially when
>>> communicating with people unable to learn a real VCS).
>>> 
>>> Just wondering: would it be possible/easy/reasonable to provide
>>> something like this within the Emacs VC framework?
>>
>> Are you talking about time-stamp.el?
>
> Not really.
>
> I mean that e.g. C-x v v will "do the right thing", for instance:
>
> I'm editing file.el (the only file in the current directory).  I press
> C-x v v.  I'm asked for a "commit message" and the current contents of
> file.el are save as e.g. file.el.2014-12-11-20:39:01-CET or something
> like that, with the "commit message" put at the beginning in a comment
> (for example).  I edit it further, and C-x v v behaves similarly.  Then,
> I can press C-x v =, and see the diff between the current version and
> the last stamped one.  Or C-u C-x v = and be asked (with autocompletion)
> for the timestamp.  Then, have similar commands for analogs of
> blame/annotate, revert to earlier versions etc.
>
> Of course, it's impossible to recreate the functionality of Git in this
> way.  Or even RCS, I'm afraid.  But for many use cases this might be
> enough (for instance, one/two authors working on a single LaTeX file of
> the paper).  (One paticular functionality that would be difficult to
> implement would be branching; while possible, it might be even
> misleading and hence dangerous.  Remember, the target would be the
> users, uhm, not wise enough to use a real VCS;-).)
>
> The rationale would be that e.g. if I work with a non-computer-savvy
> researcher, any "real" VCS might be confusing; I might be expected to
> e.g. send him file versions with a timestamp in the filename etc.

As it seems you are really aware of the pitfalls and dangers of using
this approach, I would suggest to not look into creating a
"time-stamp-file-based" VCS, but rather use on your side e.g. git, and
write some batch files which will be create time-stamped versions based
on git and also add a new time-stamped (time of check in) file to git. In this way, you
will have a good working VCS (git) with all the advantages, but also the
possibility to create consistent time-stamped files and check in new
time-stamped files.

Cheers,

Rainer


>
> Best,

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]

  reply	other threads:[~2014-12-12  8:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-11 16:09 Project idea: a poor man's VC backend Marcin Borkowski
2014-12-11 16:38 ` Stefan Monnier
2014-12-11 19:46   ` Marcin Borkowski
2014-12-11 20:17     ` Stefan Monnier
2014-12-11 20:48       ` Marcin Borkowski
2014-12-11 17:59 ` Eli Zaretskii
2014-12-11 19:44   ` Marcin Borkowski
2014-12-12  8:11     ` Rainer M Krug [this message]
2015-01-14 21:41       ` Marcin Borkowski
2015-01-14 21:58         ` Dmitry Gutov
2015-01-15 13:10         ` Doug Lewan
     [not found]   ` <mailman.15879.1418327119.1147.help-gnu-emacs@gnu.org>
2015-01-15 13:48     ` Damien Wyart
2015-01-15 20:17       ` Joost Kremers
2015-01-15 23:35         ` Marcin Borkowski
2015-01-16 17:17         ` Bob Proulx

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2388lcmo8.fsf@krugs.de \
    --to=rainer@krugs.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mbork@wmi.amu.edu.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.