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
385
def _get_tree_to_diff(spec, tree=None, branch=None, basis_is_default=True):
384
386
if branch is None and tree is not None: