Commit b246f571 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(vc-diff): If `diff' gives empty output, return nil.

parent c6cc04e9
......@@ -726,8 +726,14 @@ and two version designators specifying which versions to compare."
;; visited. This plays hell with numerous assumptions in
;; the diff.el and compile.el machinery.
(pop-to-buffer "*vc*")
(goto-char (point-min))
(pop-to-buffer "*vc*")
(if (= 0 (buffer-size))
(setq unchanged t)
(message "No changes to %s since latest version." file))
(goto-char (point-min)))
(not unchanged)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment