Browse Source

Add git-revisions stub

master
10sr 6 years ago
parent
commit
d697a41ec8
Signed by: 10sr GPG Key ID: C384BB17CBB19347
1 changed files with 7 additions and 23 deletions
  1. +7
    -23
      emacs.el

+ 7
- 23
emacs.el View File

@@ -1,6 +1,6 @@
;;; emacs.el --- 10sr emacs initialization

;; Time-stamp: <2018-10-10 19:49:14 JST 10sr>
;; Time-stamp: <2018-10-11 00:27:24 JST 10sr>

;;; Code:

@@ -2238,29 +2238,13 @@ use for the buffer. It defaults to \"*recetf-show*\"."
(define-key ctl-x-map (kbd "C-r") 'recently-show)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; git tramp

(require 'tramp)

;; TODO: autoload
(defconst git-tramp-method "git"
"Method to connect git repository.")

(defun git-tramp-add-method ()
"Add git tramp method."
;; (add-to-list 'tramp-methods
;; `(,git-tramp-method
;; (tramp-login-program ,git-tramp-git-executable)
;; (tramp-login-args (,docker-tramp-docker-options ("exec" "-it") ("-u" "%u") ("%h") ("sh")))
;; (tramp-remote-shell "/bin/sh")
;; (tramp-remote-shell-args ("-i" "-c"))))
)
;; git revision

(defun git-revision-open-tree (treeish)
"Open git tree buffer of TREEISH.")

;; ;; TODO: autoload
;; (eval-after-load 'tramp
;; '(progn
;; (git-tramp-add-method)
;; (tramp-set-completion-function git-tramp-method git-tramp-completion-function-alist)))
(defun git-revision-open (commit)
"Open git tree buffer of COMMIT.")


;; Local Variables:


Loading…
Cancel
Save