% brew update error: Your local changes to the following files would be overwritten by merge:
Library/Formula/emacs.rb
Please, commit your changes or stash them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
% git pull -q origin refs/heads/master:refs/remotes/origin/master
fatal: Not a git repository (or any of the parent directories): .git
意図してない変更がいつの間にか入っていてそれが原因でupdateできなくなっていた。
とりあえず、バージョンをもとに戻したいんだがどこで管理されてるのか理解してなくて再発しそうなので今回の対応をメモ
% cd /usr/local
% git status -sb
## master
M Library/Formula/emacs.rb
% git reset --hard HEAD~
HEAD is now at 41f0e36 groonga 3.0.6
% git status -sb
## master
これで無事復活!!