Skip to content

What magit hook is right to run forge-pull automatically for the status buffer? #464

Closed Answered by tarsius
ag91 asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend against doing this. It seems unnecessary; fetching explicitly is simple enough and too slow to do it all the time. And as you have noticed automatically doing it when you want it to happen but not doing it when you don't want it to happen isn't trivial.

If you want to do it anyway then:

  1. Advice magit-status-setup-buffer.
  2. Make sure you use a magit-bury-buffer-function that buries the buffer but does not kill it.
  3. Replace you global binding for magit-status to use magit-status-quick instead.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ag91
Comment options

@tarsius
Comment options

@ag91
Comment options

@DivineDominion
Comment options

Answer selected by ag91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants