AFAICT this will work only if this function is loaded before the magit files are edited.
While this is probably generally true, I suppose wrapping it in `eval-after-load` might be safer ?