Provides a git-status-like repository widget.
This widget observes the main model and broadcasts Qt signals.
Given an item, returns the index of the item.
The indexes for unstaged items are grouped such that the index of unmerged[1] = len(modified) + 1, etc.
Called when a repo status tree item is clicked.
This handles the behavior where clicking on the icon invokes the same appropriate action.