Hot answers tagged

6

This is possible in Emacs 26.1. You need to set the configuration variable vc-git-print-log-follow to t. The functionality was implemented in the following commit: https://github.com/emacs-mirror/emacs/commit/8663fad0a70e60e130ae4cd0529ead66fbad2250 That change is a workaround for Emacs bug #8756: vc-git.el doesn't use --follow argument in vc-git-print-log ...


5

When using diff-hl and magit => v2.4.0 you have to add this: (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh) As far as the information in the mode-line is concerned, I would recommend just ignoring that (or even removing it completely). The function which updates that is actually fairly inefficient, so one could say it is a good thing it ...


3

This behaviour is controlled by the vc-git-resolve-conflicts variable. Setting this to nil removes automatic git-add after conflict resolution.


2

I figured it out. Following method 2 outlined in this answer, I just redefined the function vc-steal-lock by commenting out the chunk of code that has to do with emailing the person from whom you stole the lock. (eval-after-load "vc" '(defun vc-steal-lock (file rev owner) "Steal the lock on FILE." (let (file-description) (if rev (setq file-...


2

Wrong number of arguments vc-find-root must be invoked with two arguments: (vc-find-root FILE WITNESS). To get vc root use vc-root-dir instead: vc-root-dir is an autoloaded compiled Lisp function in vc.el. Return the root directory for the current VC tree. Return nil if the root directory cannot be identified. And if you need the vc root of ...


2

The VC packages uses caching, and in many places assumes that the user interacts with VCS systems (e.g. Git) through it. To register a new file in a Git repository, press C-x v v, you don't need to use Eshell for that. If you've changed a buffer's status using something else than VC commands, though, you can visit the file again to refresh the status ...


1

Use C-x C-v (find-alternate-file) to reload bar.txt. You should then see "Git@master" in the mode line.


1

I finally came around to solving this problem. The following code uses ‘vc-exec-after’ to be compatible with Emacs 23.x. With the customizable command ‘vcx-dir-hide-states’, mapped to ‘X’ in *vc-dir* buffers: (require 'vc-dir) (require 'vc-hooks) (defvar vcx-dir-hide-states-list '(up-to-date ignored unregistered) "VC states of entries to be hidden ...


1

Every time ignored files show up, you move your cursor (not mouse pointer :D) to a line with an ignored file, and then type C-u x. That makes all the files in that state (ignored) disappear. Until an update of the buffer. As far as I could find out, they for some unfathomable reason (tried to find it, found some mails which didn't seem to make any sense) ...


Only top voted, non community-wiki answers of a minimum length are eligible