refresh buffer automatically when using git for example