379
381
if working_tree is not None and working_tree not in (old_tree, new_tree):
380
382
extra_trees = (working_tree,)
381
return old_tree, new_tree, specific_files, extra_trees
383
return old_tree, new_tree, old_branch, new_branch, specific_files, extra_trees
383
386
def _get_tree_to_diff(spec, tree=None, branch=None, basis_is_default=True):
384
387
if branch is None and tree is not None: