Chnage magit-status-buffer-switch-function.