[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: List of buffers under version control?
From: |
John Mastro |
Subject: |
Re: List of buffers under version control? |
Date: |
Thu, 28 Jul 2016 12:58:11 -0700 |
John Mastro <john.b.mastro@gmail.com> wrote:
> You could use `vc-backend', e.g. (vc-backend (buffer-file-name)).
If the version control system in question isn't supported by VC, an
alternative would be to use `locate-dominating-file'. Something like
(using Git as an example, even though VC obviously does support it):
(save-some-buffers
nil
(lambda ()
(let ((file (buffer-file-name)))
(and file (locate-dominating-file file ".git")))))
John
- List of buffers under version control?, Rolf Ade, 2016/07/27
- Re: List of buffers under version control?, Rusi, 2016/07/28
- Re: List of buffers under version control?, Rolf Ade, 2016/07/28
- Re: List of buffers under version control?, Marcin Borkowski, 2016/07/28
- Message not available
- Re: List of buffers under version control?, Rolf Ade, 2016/07/28
- Re: List of buffers under version control?, John Mastro, 2016/07/28
- RE: List of buffers under version control?, Drew Adams, 2016/07/28
- Message not available
- Re: List of buffers under version control?, Rolf Ade, 2016/07/28
- Message not available
- Re: List of buffers under version control?, Rolf Ade, 2016/07/28
- Re: List of buffers under version control?, Stefan Monnier, 2016/07/28
Re: List of buffers under version control?, Yuri Khan, 2016/07/28
Message not available