|
From: | Thierry Volpiatto |
Subject: | Re: vc-rename-file() if possible otherwise rename-file() |
Date: | Tue, 18 Mar 2008 20:13:17 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Nordlow <per.nordlow@gmail.com> writes: > Looking for a small snippet that does vc-rename-file() when possible > (source file is under version control) otherwise default to rename- > file(). The question is: How do I check if a file is under version > control or not? Look in the modeline you will see the name of the version-system backend and the number of version. Like SVN:123 for a file under subversion version no123. But the file didn't come under version-control alone... ;) -- A + Thierry Pub key: http://pgp.mit.edu
[Prev in Thread] | Current Thread | [Next in Thread] |