The branch, hooks has been updated via 384963f23cf7b97f1e9c8961b854f90dccc658b0 (commit) via 9cb2b052b6da72e8b3131de5e876ce048c330f4b (commit) from 7cf1251d8c7baccf27050caaefdc88b6b60e4147 (commit)
- Log ----------------------------------------------------------------- commit 384963f23cf7b97f1e9c8961b854f90dccc658b0 Author: Nicholas Marriott <nicholas.marri...@gmail.com> Commit: Nicholas Marriott <nicholas.marri...@gmail.com> Always need to start with a session set. --- cmd-queue.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd-queue.c b/cmd-queue.c index b7daf44..1a6d4a5 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -34,16 +34,19 @@ void cmdq_set_state(struct cmd_q *cmdq) { struct cmd_state *state = &cmdq->state; + struct session *s; + + s = cmd_current_session(cmdq, 0); state->c = cmdq->client; - state->tflag.s = NULL; + state->tflag.s = s; state->tflag.wl = NULL; state->tflag.wp = NULL; state->tflag.idx = -1; state->tflag.prior = args_get(cmdq->cmd->args, 't'); - state->sflag.s = NULL; + state->sflag.s = s; state->sflag.wl = NULL; state->sflag.wp = NULL; state->sflag.idx = -1; commit 9cb2b052b6da72e8b3131de5e876ce048c330f4b Author: Nicholas Marriott <nicholas.marri...@gmail.com> Commit: Nicholas Marriott <nicholas.marri...@gmail.com> Log hook entry and exit. --- hooks.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hooks.c b/hooks.c index e87d6ee..b187073 100644 --- a/hooks.c +++ b/hooks.c @@ -103,10 +103,16 @@ void hooks_run(struct hook *hook, struct cmd_q *cmdq) { struct cmd *cmd; + char tmp[BUFSIZ]; + + cmd_list_print(hook->cmdlist, tmp, sizeof tmp); + log_debug("entering hook %s: %s", hook->name, tmp); TAILQ_FOREACH(cmd, &hook->cmdlist->list, qentry) { cmd_prepare(cmd, cmdq); /* TA: FIXME: How do we handle errors here, if at all??? */ cmd->entry->exec(cmd, cmdq); } + + log_debug("exiting hook %s", hook->name); } ----------------------------------------------------------------------- Summary of changes: cmd-queue.c | 7 +++++-- hooks.c | 6 ++++++ 2 files changed, 11 insertions(+), 2 deletions(-) hooks/post-receive -- tmux ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs