Module ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias alias FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad Call NameLoad NameLoad attr attr Str Return SubscriptLoad Call AttributeLoad NameLoad attr Slice Num decorator_list Assign NameStore Call NameLoad NameLoad Expr Yield Assign NameStore Call NameLoad NameLoad Assert CompareEq NameLoad NameLoad Str decorator_list NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Delete AttributeDel NameLoad attr Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr NameStore body Expr Yield NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Num Num Num Num For NameStore NameLoad body Expr Call NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call NameLoad Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str With Call AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str With Call NameLoad NameLoad NameStore body Assign AttributeStore NameLoad attr Call NameLoad With Call NameLoad AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str With Call NameLoad NameLoad NameStore body Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str With Call NameLoad AttributeLoad NameLoad attr NameLoad body Pass Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list
N/A os unlink os.path join isfile contextlib contextmanager functools partial itertools chain combinations git Repo Head Commit mock patch MagicMock jig.tests.testcase JigTestCase jig.exc GitRevListMissing GitRevListFormatError GitWorkingDirectoryDirty TrackingBranchMissing jig.gitutils.branches parse_rev_range prepare_working_directory _prepare_against_staged_index _prepare_with_rev_range Tracked assert_git_status_unchanged N/A N/A repository N/A N/A N/A 
    Make sure that the working directory remains in the same rough state.

    :param string repository: Git repo
     long_status N/A N/A repository N/A N/A N/A output N/A N/A N/A N/A Repo repository git status --long N/A N/A N/A N/A output splitlines N/A 1 N/A N/A before N/A long_status repository N/A N/A N/A after N/A long_status repository N/A N/A before after Working directory status has changed N/A contextmanager PrepareTestCase N/A JigTestCase N/A N/A 
    Base test class for private functions that prepare the working directory.

     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super PrepareTestCase self setUp N/A N/A N/A self reset_gitrepo N/A reset_gitrepo N/A N/A self N/A N/A N/A N/A self gitrepodir N/A N/A self commits N/A N/A N/A self commit N/A self gitrepodir a.txt a N/A N/A self commit N/A self gitrepodir b.txt b N/A N/A self commit N/A self gitrepodir c.txt c N/A N/A self commit N/A self gitrepodir d.txt d N/A repo N/A N/A self N/A N/A N/A N/A Repo N/A self gitrepodir N/A property diff_head N/A N/A self N/A N/A N/A N/A N/A N/A N/A self repo index diff HEAD N/A prepare N/A N/A self N/A N/A N/A N/A assert_git_status_unchanged N/A self gitrepodir N/A N/A N/A N/A self prepare_context_manager subject N/A N/A N/A subject N/A contextmanager N/A TestParseRevRange N/A JigTestCase N/A N/A 
    Git utils revision range parser.

     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestParseRevRange self setUp N/A N/A N/A self gitrepo N/A self gitrepodir _ N/A N/A self repo_from_fixture repo01 N/A assertIsRevRange N/A N/A self rev_range N/A N/A N/A N/A N/A self assertIsInstance N/A rev_range a Commit N/A N/A N/A self assertIsInstance N/A rev_range b Commit N/A test_bad_format N/A N/A self N/A N/A N/A 
        If the revision range doesn't match the expected format.
         N/A N/A N/A self assertRaises GitRevListFormatError N/A N/A N/A parse_rev_range N/A self gitrepodir A-B N/A test_bad_format_missing_rev N/A N/A self N/A N/A N/A 
        If the format is correct but the revisions are missing.
         N/A N/A N/A self assertRaises GitRevListFormatError N/A N/A N/A parse_rev_range N/A self gitrepodir ..B N/A N/A N/A self assertRaises GitRevListFormatError N/A N/A N/A parse_rev_range N/A self gitrepodir A.. N/A test_bad_revs N/A N/A self N/A N/A N/A 
        If the format is good but the revisions do not exist.
         N/A N/A N/A self assertRaises GitRevListMissing N/A N/A N/A parse_rev_range N/A self gitrepodir FOO..BAR N/A test_good_revs N/A N/A self N/A N/A N/A 
        The revisions to exist.
         N/A N/A N/A self assertIsRevRange N/A parse_rev_range N/A self gitrepodir HEAD^1..HEAD N/A test_local_branch N/A N/A self N/A N/A N/A 
        A branch that is newly created can be referenced.
         N/A N/A N/A N/A self gitrepo create_head feature-branch N/A N/A N/A self assertIsRevRange N/A parse_rev_range N/A self gitrepodir HEAD^1..feature-branch N/A test_out_of_range N/A N/A self N/A N/A N/A 
        A revision is out of range.
         N/A N/A N/A self assertRaises GitRevListMissing N/A N/A N/A parse_rev_range N/A self gitrepodir HEAD~1000..HEAD N/A N/A TestPrepareAgainstStagedIndex N/A PrepareTestCase N/A N/A 
    Prepare the working directory against the staged index.

     prepare_context_manager N/A N/A self N/A N/A N/A N/A _prepare_against_staged_index N/A self repo N/A test_working_directory_clean N/A N/A self N/A N/A N/A 
        Working directory is clean.
         N/A N/A N/A self prepare stash N/A N/A N/A N/A self assertIsNone stash N/A test_untracked N/A N/A self N/A N/A N/A 
        Untracked file present.
         N/A N/A N/A self create_file N/A self gitrepodir e.txt e N/A expected_untracked N/A N/A self repo untracked_files N/A N/A N/A self prepare stash N/A N/A N/A N/A self assertIsNone stash N/A N/A N/A self assertEqual expected_untracked N/A N/A self repo untracked_files N/A test_staged N/A N/A self N/A N/A N/A 
        Staged file.
         N/A N/A N/A self stage N/A self gitrepodir a.txt aa N/A before N/A N/A self diff_head N/A N/A N/A self prepare stash N/A N/A N/A N/A self assertIsNone stash N/A N/A N/A self assertEqual before N/A N/A self diff_head N/A test_modified N/A N/A self N/A N/A N/A 
        Modified file.
         N/A N/A N/A self modify_file N/A self gitrepodir a.txt aa N/A N/A N/A self prepare stash N/A N/A N/A N/A self assertIsNotNone stash N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A self repo index diff None N/A test_stageremoved N/A N/A self N/A N/A N/A 
        Staged removal of a file.
         N/A N/A N/A self stage_remove N/A self gitrepodir a.txt N/A N/A N/A self prepare stash N/A N/A N/A N/A self assertIsNone stash N/A test_fsremoved N/A N/A self N/A N/A N/A 
        Non-staged removal of a file.
         N/A N/A unlink N/A join N/A self gitrepodir a.txt N/A N/A N/A self prepare stash N/A N/A N/A N/A self assertIsNotNone stash N/A N/A N/A self assertTrue N/A isfile N/A join N/A self gitrepodir a.txt N/A test_combinations N/A N/A self N/A N/A N/A 
        Combine all variations of modification, creation, or removal.
         modified N/A N/A N/A N/A N/A N/A N/A self modify_file N/A self gitrepodir a.txt aa N/A N/A N/A modified should_stash True staged N/A N/A N/A N/A N/A N/A N/A self stage N/A self gitrepodir b.txt bb N/A N/A N/A staged should_stash False indexremoved N/A N/A N/A N/A N/A N/A N/A self stage_remove N/A self gitrepodir c.txt N/A N/A N/A indexremoved should_stash False fsremoved N/A N/A N/A N/A N/A N/A unlink N/A join N/A self gitrepodir d.txt N/A N/A N/A fsremoved should_stash True untracked N/A N/A N/A N/A N/A N/A N/A self create_file N/A self gitrepodir e.txt e N/A N/A N/A untracked should_stash False N/A mutation N/A partial combinations N/A modified staged indexremoved fsremoved untracked N/A options N/A N/A chain from_iterable N/A map mutation N/A 2 3 4 5 N/A option options N/A N/A N/A map N/A N/A N/A x N/A N/A x option N/A N/A N/A self prepare stash N/A N/A should_stash N/A any N/A map N/A N/A N/A x N/A N/A x should_stash option N/A should_stash N/A N/A N/A N/A self assertIsNotNone stash N/A N/A N/A N/A self assertIsNone stash N/A N/A N/A self reset_gitrepo N/A N/A TestPrepareWithRevRange N/A PrepareTestCase N/A N/A 
    With a given rev range test that we can checkout the repository.

     prepare_context_manager N/A N/A self N/A N/A N/A rev_range_parsed N/A parse_rev_range N/A N/A self repo working_dir N/A self rev_range N/A N/A _prepare_with_rev_range N/A self repo rev_range_parsed N/A test_dirty_working_directory N/A N/A self N/A N/A N/A 
        Dirty working directory will raise an exception.
         N/A N/A self rev_range HEAD~3..HEAD~0 N/A N/A N/A self modify_file N/A self gitrepodir a.txt aa N/A N/A N/A self assertRaises GitWorkingDirectoryDirty N/A N/A N/A N/A N/A N/A self prepare __enter__ N/A test_yields_git_named_head N/A N/A self N/A N/A N/A 
        The object that is yielded is a :py:class:`git.Head`.
         N/A N/A self rev_range HEAD~1..HEAD~0 N/A N/A N/A self prepare head N/A N/A N/A N/A self assertIsInstance head Head N/A test_yields_git_detached_head N/A N/A self N/A N/A N/A 
        If detached HEAD, object that is yielded is a :py:class:`git.Commit`.
         N/A N/A self rev_range HEAD~1..HEAD~0 N/A N/A N/A N/A N/A Repo N/A self gitrepodir git checkout N/A N/A N/A self commits N/A -1 hexsha N/A N/A N/A self prepare head N/A N/A N/A N/A self assertIsInstance head Commit N/A test_detached_head_right_side_of_rev_range N/A N/A self N/A N/A N/A 
        The head object points to the right side of the rev range.
         N/A N/A self rev_range HEAD~2..HEAD~1 N/A expected N/A N/A self commits N/A -2 N/A N/A N/A self prepare N/A N/A N/A N/A self assertEqual N/A N/A N/A Repo N/A self gitrepodir head commit expected N/A test_returns_to_master N/A N/A self N/A N/A N/A 
        After exiting the context manager, we should be back on master.
         N/A N/A self rev_range HEAD~2..HEAD~1 N/A N/A N/A self prepare N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A N/A Repo N/A self gitrepodir head reference path refs/heads/master N/A test_returns_to_detached_head N/A N/A self N/A N/A N/A 
        From a detached head upon exiting we should be back where we started.
         N/A N/A self rev_range HEAD~2..HEAD~1 N/A N/A N/A N/A N/A Repo N/A self gitrepodir git checkout N/A N/A N/A self commits N/A -2 hexsha N/A expected N/A N/A self commits N/A -3 N/A N/A N/A self prepare N/A N/A N/A N/A self assertEqual N/A N/A N/A Repo N/A self gitrepodir head commit expected N/A N/A N/A self assertEqual N/A N/A N/A Repo N/A self gitrepodir head commit N/A N/A self commits N/A -2 N/A N/A TestPrepareWorkingDirectory N/A JigTestCase N/A N/A 
    Make the working directory suitable for running Jig.

     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestPrepareWorkingDirectory self setUp N/A N/A N/A self gitrepo N/A self gitrepodir _ N/A N/A self repo_from_fixture repo01 N/A test_no_rev_range N/A N/A self N/A N/A N/A 
        Should prepare against the staged index if no rev range.
         N/A prepare_function jig.gitutils.branches._prepare_against_staged_index N/A N/A patch prepare_function p N/A N/A N/A p return_value N/A MagicMock N/A N/A prepare_working_directory N/A self gitrepodir N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A p return_value __enter__ called N/A test_rev_range N/A N/A self N/A N/A N/A 
        Should checkout the Git repo at the end of the rev range.
         N/A prepare_function jig.gitutils.branches._prepare_with_rev_range N/A N/A patch prepare_function p N/A N/A N/A p return_value N/A MagicMock N/A rev_range_parsed N/A parse_rev_range N/A self gitrepodir HEAD~1..HEAD~0 N/A N/A prepare_working_directory N/A self gitrepodir rev_range_parsed N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A p return_value __enter__ called N/A N/A TestTracked N/A JigTestCase N/A N/A 
    Git repositories can be tracked for CI mode.

     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestTracked self setUp N/A N/A self commits N/A N/A N/A self commit N/A self gitrepodir a.txt a N/A N/A self commit N/A self gitrepodir b.txt b N/A N/A self commit N/A self gitrepodir c.txt c N/A test_tracking_branch_does_not_exist N/A N/A self N/A N/A N/A 
        Tracking branch does not exist.
         N/A tracked N/A Tracked N/A self gitrepodir N/A N/A N/A self assertFalse N/A tracked exists N/A test_tracking_branch_exists N/A N/A self N/A N/A N/A 
        Tracking branch exists.
         N/A tracking_branch N/A N/A N/A Repo N/A self gitrepodir create_head jig-ci-last-run N/A N/A tracking_branch commit HEAD N/A tracked N/A Tracked N/A self gitrepodir N/A N/A N/A self assertTrue N/A tracked exists N/A test_tracking_branch_by_a_different_name N/A N/A self N/A N/A N/A 
        Can check existence by a different name than the default.
         N/A name different-tracking-name N/A tracking_branch N/A N/A N/A Repo N/A self gitrepodir create_head name N/A N/A tracking_branch commit HEAD N/A tracked N/A Tracked N/A self gitrepodir name N/A N/A N/A self assertTrue N/A tracked exists N/A test_update_defaults_to_head N/A N/A self N/A N/A N/A 
        Updating the tracking branch defaults to current HEAD.
         N/A tracked N/A Tracked N/A self gitrepodir N/A reference N/A N/A tracked update N/A N/A N/A self assertEqual N/A reference commit N/A N/A self commits N/A -1 N/A test_non_existent_reference N/A N/A self N/A N/A N/A 
        Without a tracking branch trying to get a references to it raises.
         N/A tracked N/A Tracked N/A self gitrepodir N/A N/A N/A self assertRaises TrackingBranchMissing N/A N/A N/A tracked reference N/A test_tracking_branch_reference N/A N/A self N/A N/A N/A 
        With a tracking branch we can get a reference to it.
         N/A tracking_branch N/A N/A N/A Repo N/A self gitrepodir create_head jig-ci-last-run N/A N/A tracking_branch commit HEAD~2 N/A tracked N/A Tracked N/A self gitrepodir N/A N/A N/A self assertEqual N/A N/A tracked reference commit N/A N/A self commits N/A 0 N/A test_update_takes_commit_hash N/A N/A self N/A N/A N/A 
        Updating the tracking branch can be done with a commit hash.
         N/A tracked N/A Tracked N/A self gitrepodir N/A N/A N/A tracked update N/A N/A N/A self commits N/A 0 hexsha N/A N/A N/A self assertEqual N/A N/A tracked reference commit N/A N/A self commits N/A 0 N/A test_update_moves_head_forward N/A N/A self N/A N/A N/A 
        The tracking branch reference can be moved forward.
         N/A tracking_branch N/A N/A N/A Repo N/A self gitrepodir create_head jig-ci-last-run N/A N/A tracking_branch commit HEAD~2 N/A tracked N/A Tracked N/A self gitrepodir N/A N/A N/A tracked update N/A N/A N/A self assertEqual N/A N/A tracked reference commit N/A N/A self commits N/A -1 N/A N/A