diff options
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/custom/fcuny-git.el | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/emacs/custom/fcuny-git.el b/emacs/custom/fcuny-git.el index 97a9cfa..4c6409a 100644 --- a/emacs/custom/fcuny-git.el +++ b/emacs/custom/fcuny-git.el @@ -89,12 +89,8 @@ :bind (("C-c g l" . git-link) ("C-c g a" . git-link-commit)) :config - (defvar fcuny/map-git-remote-to-sg - '(("git.twitter.biz" "sourcegraph.twitter.biz/git.twitter.biz") - ("gitpuppet.twitter.biz" "sourcegraph.twitter.biz/gitpuppet.twitter.biz"))) - (defun fcuny/get-sg-remote-from-hostname (hostname) - (nth 1 (assoc hostname fcuny/map-git-remote-to-sg))) + (format "sourcegraph.twitter.biz/%s" hostname)) (defun fcuny/git-link-work-sourcegraph (hostname dirname filename _branch commit start end) (let ((sg-base-url (fcuny/get-sg-remote-from-hostname hostname))) |