Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Run magit-refresh-status-hook outside the macro creating the section #493

Merged
merged 1 commit into from Jan 6, 2013

Conversation

Projects
None yet
3 participants
Contributor

vanicat commented Oct 8, 2012

I need comment on this: moving the hook enable function in the hook to use section related function, to show and hide them for example (see http://stackoverflow.com/questions/12745311/scripting-magit-timing-problems/12769554#12769554 for an example of such use), but it remove to those function the possibilities to change the content of the section (but do we want that?)

Run magit-refresh-status-hook outside the macro creating the section
Otherwise, any section related function used in the hook will failed.

@vanicat vanicat referenced this pull request Oct 8, 2012

Closed

scripting magit-status #492

lewang commented Nov 8, 2012

👍 Maybe it's better to create a new hook -- magit-refresh-status-post-section-hook. The Stackoverflow question is mine.

@sigma sigma merged commit d1a5507 into magit:master Jan 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment