'Return selected tracked paths.'

def selected_tracked_paths(self, selection=None):

    if (selection is None):
        selection = self.selected_paths()
    model = main.model()
    staged = set(self.selected_staged_paths(selection=selection))
    modified = set(self.selected_modified_paths(selection=selection))
    untracked = utils.add_parents(model.untracked)
    tracked = staged.union(modified)
    return [p for p in selection if ((p not in untracked) or (p in tracked))]
