diff options
author | David Morgan <djm_uk@protonmail.com> | 2023-05-17 13:03:31 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2023-05-17 13:03:31 +0100 |
commit | d111244c82a8e82b83aa3354963f69099c146f8d (patch) | |
tree | b93eef9de8f801d933f6eafc995147eeb8997d0b | |
parent | 119fda8cc0e0bddcf33cbc25ad3af16dcb2498c1 (diff) | |
download | dotfiles-d111244c82a8e82b83aa3354963f69099c146f8d.tar.gz |
Add some eldoc and fix warnings
-rw-r--r-- | .emacs.d/lisp/init-git.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-git.el b/.emacs.d/lisp/init-git.el index e1f8d68..c88a020 100644 --- a/.emacs.d/lisp/init-git.el +++ b/.emacs.d/lisp/init-git.el @@ -199,10 +199,10 @@ ;; Otherwise, auto-guess based on position of point, e.g., based on ;; if we are in the Staged or Unstaged section. (pcase (magit-diff--dwim) - ('unmerged (error "unmerged is not yet implemented")) + ('unmerged (error "Unmerged is not yet implemented")) ('unstaged nil) ('staged "--cached") - (`(stash . ,value) (error "stash is not yet implemented")) + (`(stash . ,value) (error "Stash is not yet implemented")) (`(commit . ,value) (format "%s^..%s" value value)) ((and range (pred stringp)) range) (_ (magit-diff-read-range-or-commit "Range/Commit")))))) @@ -307,10 +307,14 @@ (use-package git-link :config (defun git-link-on-branch () + "Like `git-link', but force linking to the branch rather than a commit." (interactive) (let ((git-link-use-commit nil)) (call-interactively 'git-link))) (defun git-link-branch () + "Create a URL representing the current buffer's branch in its +GitHub/Bitbucket/GitLab/... The URL will be added to the kill ring. If +`git-link-open-in-browser' is non-nil also call `browse-url'." (interactive) (let* ((remote-info (git-link--parse-remote (git-link--remote-url (git-link--select-remote)))) (branch (git-link--branch))) |