| @@ -1,6 +1,6 @@ | |||||
| ;;; emacs.el --- 10sr emacs initialization | ;;; emacs.el --- 10sr emacs initialization | ||||
| ;; Time-stamp: <2018-10-16 23:18:27 JST 10sr> | |||||
| ;; Time-stamp: <2018-10-16 23:52:31 JST 10sr> | |||||
| ;;; Code: | ;;; Code: | ||||
| @@ -2490,17 +2490,24 @@ checking it." | |||||
| (let ((root (git-walktree--git-plumbing "rev-parse" | (let ((root (git-walktree--git-plumbing "rev-parse" | ||||
| "--show-toplevel"))) | "--show-toplevel"))) | ||||
| (file-relative-name dir root)))) | (file-relative-name dir root)))) | ||||
| (file-relative-name "/abc/def/ghi" "/abc/def/ghi") | |||||
| (defcustom git-walktree-git-executable "git" | (defcustom git-walktree-git-executable "git" | ||||
| "Git executable." | "Git executable." | ||||
| :type 'string | :type 'string | ||||
| :group 'git-walktree) | :group 'git-walktree) | ||||
| (defcustom git-walktree-try-cd t | (defcustom git-walktree-try-cd t | ||||
| "Try to cd if directory exists in current working directory if non-nil. | "Try to cd if directory exists in current working directory if non-nil. | ||||
| Otherwise buffer's `default-directory' is always repository root." | Otherwise buffer's `default-directory' is always repository root." | ||||
| :type 'boolean | :type 'boolean | ||||
| :group 'git-walktree) | :group 'git-walktree) | ||||
| ;; TODO: Use this | |||||
| (defcustom git-walktree-reuse-tree-buffer nil | |||||
| "Non-nil to reuse buffer when treeish object." | |||||
| :type 'boolean | |||||
| :group 'git-walktree) | |||||
| (defun git-walktree--git-plumbing (&rest args) | (defun git-walktree--git-plumbing (&rest args) | ||||
| "Run git plubming command with ARGS. | "Run git plubming command with ARGS. | ||||
| Returns first line of output without newline." | Returns first line of output without newline." | ||||
| @@ -2650,6 +2657,7 @@ This function do nothing when current line is not ls-tree output." | |||||
| (defvar git-walktree-tree-face 'git-walktree-tree-face | (defvar git-walktree-tree-face 'git-walktree-tree-face | ||||
| "Face used for tree objects.") | "Face used for tree objects.") | ||||
| ;; TODO: Store as global hash object | |||||
| (defvar git-walktree-known-child-revisions '() | (defvar git-walktree-known-child-revisions '() | ||||
| "List of already known child reivions of currnet buffer in sha1 string.") | "List of already known child reivions of currnet buffer in sha1 string.") | ||||
| (make-variable-buffer-local 'git-walktree-known-child-revisions) | (make-variable-buffer-local 'git-walktree-known-child-revisions) | ||||