From 57a6fb949afcd9e312125c041b8483bff84bd66f Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Thu, 18 Oct 2018 16:53:26 +0900 Subject: [PATCH] Update --- emacs.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/emacs.el b/emacs.el index 132de70..67b6e3c 100644 --- a/emacs.el +++ b/emacs.el @@ -1,6 +1,6 @@ ;;; emacs.el --- 10sr emacs initialization -;; Time-stamp: <2018-10-18 16:35:55 JST 10sr> +;; Time-stamp: <2018-10-18 16:53:25 JST 10sr> ;;; Code: @@ -2327,13 +2327,16 @@ TYPE is target object type." (setq git-walktree-repository-root root) (current-buffer)))))) +;; TODO: Change func name (defun git-walktree--replace-into (target) "Replace TARGET buffer contents with that of current buffer." (let ((buf (current-buffer))) (with-current-buffer target - (replace-buffer-contents buf)))) + (save-excursion + (erase-buffer) + (insert-buffer-substring buf))))) -(require 'ansi-color) + (require 'ansi-color) (defun git-walktree--open-treeish (commitish path treeish) "Open git tree buffer of TREEISH." (cl-assert path) @@ -2363,7 +2366,8 @@ TYPE is target object type." "-c" "color.ui=always" "show" - "--no-patch" + "--stat" + ;; "--no-patch" "--color=always" "--pretty=short" commitish)