# session_group_synchronize_from

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L614
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-session_group_synchronize_from/

```c
void session_group_synchronize_from(struct session *target)
```

## Parameters

- `target` (`struct session *`)

## Called by

- [`cmd_swap_window_exec`](/en/tmux/latest/reference/c-function-cmd-swap-window-c-cmd_swap_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-swap-window.c#L87)
- [`session_attach`](/en/tmux/latest/reference/c-function-session_attach/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L335)
- [`session_detach`](/en/tmux/latest/reference/c-function-session_detach/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L353)
- [`spawn_window`](/en/tmux/latest/reference/c-function-spawn_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/spawn.c#L196)
- [`window_tree_swap`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_swap/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L863)

## Calls

- [`session_group_synchronize1`](/en/tmux/latest/reference/c-function-session-c-session_group_synchronize1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L624)

## Other function references

- [`session_group_contains`](/en/tmux/latest/reference/c-function-session_group_contains/) (function)

## Referenced declarations

- [`session.gentry`](/en/tmux/latest/reference/c-struct-session-gentry/) (attribute)
- [`session`](/en/tmux/latest/reference/c-struct-session/) (struct)
- [`session_group.sessions`](/en/tmux/latest/reference/c-struct-session_group-sessions/) (attribute)
