Skip to content

Commit

Permalink
Made git version detection more succinct
Browse files Browse the repository at this point in the history
  • Loading branch information
dotemacs committed May 2, 2012
1 parent 8db6394 commit 8efd9c6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions egg.el
Expand Up @@ -6534,13 +6534,9 @@ egg in current buffer.\\<egg-minor-mode-map>
(make-local-variable 'egg-minor-mode)
(egg-minor-mode 1)))

(when (or
(string-match "\\`git version 1.6."
(shell-command-to-string
(concat egg-git-command " --version")))
(string-match "\\`git version 1.7."
(shell-command-to-string
(concat egg-git-command " --version"))))
(when (string-match "\\`git version 1.\\(6\\|7\\)."
(shell-command-to-string
(concat egg-git-command " --version")))
(or (assq 'egg-minor-mode minor-mode-alist)
(setq minor-mode-alist
(cons '(egg-minor-mode egg-minor-mode-name) minor-mode-alist)))
Expand Down

0 comments on commit 8efd9c6

Please sign in to comment.