branch: master commit ce93571117e945df076c274e721cd5bac7037eee Author: Dmitry Gutov <dgu...@yandex.ru> Commit: Dmitry Gutov <dgu...@yandex.ru>
Add some FIXMEs related to #71 --- diff-hl-flydiff.el | 1 + diff-hl.el | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/diff-hl-flydiff.el b/diff-hl-flydiff.el index 2c32208..33cbfbd 100644 --- a/diff-hl-flydiff.el +++ b/diff-hl-flydiff.el @@ -133,6 +133,7 @@ This requires the external program `diff' to be in your `exec-path'." (rev (diff-hl-flydiff-create-revision file (diff-hl-flydiff/working-revision file)))) + ;; FIXME: When against staging, do it differently! (diff-no-select rev (current-buffer) "-U 0 --strip-trailing-cr" 'noasync (get-buffer-create " *diff-hl-diff*"))))) diff --git a/diff-hl.el b/diff-hl.el index 86d9cc6..436165f 100644 --- a/diff-hl.el +++ b/diff-hl.el @@ -1,6 +1,6 @@ ;;; diff-hl.el --- Highlight uncommitted changes using VC -*- lexical-binding: t -*- -;; Copyright (C) 2012-2016 Free Software Foundation, Inc. +;; Copyright (C) 2012-2018 Free Software Foundation, Inc. ;; Author: Dmitry Gutov <dgu...@yandex.ru> ;; URL: https://github.com/dgutov/diff-hl @@ -237,6 +237,7 @@ (defun diff-hl-changes-buffer (file backend) (let ((buf-name " *diff-hl* ")) (diff-hl-with-diff-switches + ;; FIXME: To diff against the staging area, call 'git diff-files -p'. (vc-call-backend backend 'diff (list file) diff-hl-reference-revision nil buf-name))