Purpose
-------
Integration tests for the F1.4 workspace-aware ``oct git ignore``
``--scope`` flag and the matching ``oct git init`` workspace-mode
behaviour (which augments the workspace-root ``.gitignore`` with the
manifest's ``ignore_at_workspace_scope[]`` patterns).
Responsibilities
----------------
- ``oct git ignore --scope=workspace`` writes to the workspace
root's ``.gitignore``, even when invoked from inside a subproject.
- ``oct git ignore --scope=project`` writes to the
``project_root``'s ``.gitignore`` (subproject if invoked there;
workspace root if invoked there).
- ``oct git ignore --scope=nearest`` (the default) targets the
workspace root when CWD is the workspace root, otherwise the
subproject's ``.gitignore``.
- ``oct git init`` at workspace scope merges the manifest's
``ignore_at_workspace_scope[]`` patterns into the workspace
``.gitignore``.
Diagnostics
-----------
Domain: GIT-TESTS
Levels:
L2 -- test lifecycle
L3 -- assertion details
Contracts
---------
- All tests use subprocess invocation against ``oct.cli``.
- All tests use tmp_path fixtures so they are automatically cleaned up.