git-rewrite 0.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ # ────────────────────────────────────────────────────────────────────────────────────────
2
+ # git-rewrite
3
+ # ───────────
4
+ #
5
+ # Git history rewriting tools.
6
+ #
7
+ # Subcommands:
8
+ # - scan: Scan for sensitive words (read-only)
9
+ # - sanitise: Rewrite to remove sensitive words
10
+ # - flatten: Flatten submodules into repository
11
+ # - remap: Remap submodule commit references
12
+ # - compose: Chain multiple commit mapping files
13
+ #
14
+ # (c) 2026 Cyber Assessment Labs — MIT License; see LICENSE in the project root.
15
+ #
16
+ # Authors
17
+ # ───────
18
+ # bena (via Claude)
19
+ #
20
+ # Version History
21
+ # ───────────────
22
+ # Jan 2026 - Created
23
+ # ────────────────────────────────────────────────────────────────────────────────────────
24
+
25
+ # ────────────────────────────────────────────────────────────────────────────────────────
26
+ # Version
27
+ # ────────────────────────────────────────────────────────────────────────────────────────
28
+
29
+ from .version import VERSION_STR
30
+
31
+ __version__ = VERSION_STR
32
+ __all__ = ["__version__"]
@@ -0,0 +1,32 @@
1
+ # ────────────────────────────────────────────────────────────────────────────────────────
2
+ # __main__.py
3
+ # ───────────
4
+ #
5
+ # Entry point for python -m git_rewrite.
6
+ #
7
+ # (c) 2026 Cyber Assessment Labs — MIT License; see LICENSE in the project root.
8
+ #
9
+ # Authors
10
+ # ───────
11
+ # bena (via Claude)
12
+ #
13
+ # Version History
14
+ # ───────────────
15
+ # Jan 2026 - Created
16
+ # ────────────────────────────────────────────────────────────────────────────────────────
17
+
18
+ import sys
19
+
20
+ MIN_PYTHON = (3, 14)
21
+ if sys.version_info < MIN_PYTHON:
22
+ print(
23
+ f"Python {MIN_PYTHON[0]}.{MIN_PYTHON[1]}+ is required. "
24
+ f"You are using Python {sys.version_info.major}.{sys.version_info.minor}.",
25
+ file=sys.stderr,
26
+ )
27
+ sys.exit(1)
28
+
29
+ from git_rewrite.cli import main # noqa: E402
30
+
31
+ if __name__ == "__main__":
32
+ raise SystemExit(main())