diff options
| author | Kevin Boulain <kevinboulain@gmail.com> | 2018-10-08 23:03:22 +0200 |
|---|---|---|
| committer | Kevin Boulain <kevinboulain@gmail.com> | 2018-10-08 23:03:43 +0200 |
| commit | b747ffc766321d3aa11dd9981c3c452bce3097cc (patch) | |
| tree | 404863049b28d7f6151afb5fe456c9535087574a | |
| parent | 68c0255b78868fb02bb5481db1247d67df241da8 (diff) | |
review: don't require magit
User should load magit if desired. Or simply remove the function from
feebleline-msg-functions.
| -rw-r--r-- | feebleline.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/feebleline.el b/feebleline.el index 928950c..346f829 100644 --- a/feebleline.el +++ b/feebleline.el @@ -118,8 +118,8 @@ (defun feebleline-git-object () "Current branch, when magit is available." - (when (and (require 'magit-git nil t) - (require 'magit-process nil t)) + (when (and (fboundp 'magit-get-current-branch) + (fboundp 'magit-rev-parse)) (or (magit-get-current-branch) ; may return nil when not on a branch (magit-rev-parse "--short" "HEAD")))) |
