branchdiff 1.3.3__py3-none-win_amd64.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.
branchdiff/__init__.py ADDED
@@ -0,0 +1,6 @@
1
+ """branchdiff — Python entry point for the bundled native binary.
2
+
3
+ This package is a thin shim. The real CLI is the `_bin/branchdiff` (or
4
+ `_bin/branchdiff.exe` on Windows) binary, which is shipped inside the
5
+ platform-specific wheel for the user's OS+arch. See __main__.py.
6
+ """
branchdiff/__main__.py ADDED
@@ -0,0 +1,37 @@
1
+ """Entry point invoked by `branchdiff` console script.
2
+
3
+ Locates the embedded native binary in `_bin/` and execs it, passing
4
+ through all CLI args. The binary is chosen at wheel-build time by the
5
+ platform-specific wheel tag, so by the time this runs we know exactly
6
+ which binary to launch.
7
+ """
8
+
9
+ import os
10
+ import sys
11
+ from pathlib import Path
12
+
13
+
14
+ def main():
15
+ here = Path(__file__).parent
16
+ bin_name = "branchdiff.exe" if sys.platform == "win32" else "branchdiff"
17
+ binary = here / "_bin" / bin_name
18
+
19
+ if not binary.exists():
20
+ sys.stderr.write(
21
+ f"branchdiff: missing embedded binary at {binary}\n"
22
+ "This wheel may have been installed for the wrong platform.\n"
23
+ )
24
+ sys.exit(127)
25
+
26
+ if sys.platform == "win32":
27
+ # os.execv on Windows replaces process but loses Ctrl+C handling
28
+ # in some terminals. Use subprocess + sys.exit to forward exit code.
29
+ import subprocess
30
+ result = subprocess.run([str(binary), *sys.argv[1:]])
31
+ sys.exit(result.returncode)
32
+ else:
33
+ os.execv(str(binary), [str(binary), *sys.argv[1:]])
34
+
35
+
36
+ if __name__ == "__main__":
37
+ main()
Binary file
@@ -0,0 +1,54 @@
1
+ Metadata-Version: 2.4
2
+ Name: branchdiff
3
+ Version: 1.3.3
4
+ Summary: Visual git & file diff in your browser, with AI review support
5
+ Project-URL: Homepage, https://www.npmjs.com/package/@encryptioner/branchdiff
6
+ Author-email: Mir Mursalin Ankur <mir.ankur.ruet13@gmail.com>
7
+ License: MIT
8
+ Keywords: branch,cli,code-review,diff,git,viewer
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: MacOS
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Topic :: Software Development :: Version Control :: Git
17
+ Requires-Python: >=3.8
18
+ Description-Content-Type: text/markdown
19
+
20
+ # branchdiff
21
+
22
+ Visual git & file diff in your browser, with AI-supported code review,
23
+ GitHub & Bitbucket sync, and persistent sessions. 100% local, no cloud,
24
+ no telemetry.
25
+
26
+ ## Install
27
+
28
+ ```bash
29
+ pip install branchdiff # or
30
+ uv tool install branchdiff # or
31
+ pipx install branchdiff
32
+ ```
33
+
34
+ The right pre-compiled binary for your OS+arch is selected automatically:
35
+
36
+ - macOS (Apple Silicon and Intel)
37
+ - Linux (x86_64 and aarch64)
38
+ - Windows (x86_64)
39
+
40
+ No Node.js required.
41
+
42
+ ## Use
43
+
44
+ ```bash
45
+ branchdiff main feature-branch
46
+ ```
47
+
48
+ Opens a browser-based diff viewer. See `branchdiff --help` for options.
49
+
50
+ ## Project
51
+
52
+ - npm package (Node 18+ users): https://www.npmjs.com/package/@encryptioner/branchdiff
53
+ - Releases: https://github.com/encryptioner/branchdiff-releases/releases
54
+ - Documentation: https://encryptioner.github.io/branchdiff-releases/
@@ -0,0 +1,7 @@
1
+ branchdiff/__init__.py,sha256=snXvJFWyX44FN-bYozibzywKLjm0WxwFHUOn8VcOJQE,279
2
+ branchdiff/__main__.py,sha256=6-jK-XbodZBgxRjg9CaKf7UelJShXAsYTo7y7WBOlOQ,1145
3
+ branchdiff/_bin/branchdiff.exe,sha256=V1xq3FRdH_0-_h-6eQUUdkYak9SOdS4BbymCxqAhwZg,70766634
4
+ branchdiff-1.3.3.dist-info/METADATA,sha256=NB5MQ-i1uFXXleUIIG5G06SInSPC-4JajIhu6G0CI_I,1606
5
+ branchdiff-1.3.3.dist-info/WHEEL,sha256=OKr2XcpSNWrtUe-CU6RMYrBnsfqGnZ3jZM4vKnozTRA,94
6
+ branchdiff-1.3.3.dist-info/entry_points.txt,sha256=AcV405jAC_Zdd-KnWmooFPp5HDyhk8UgyLRw_vytYpY,56
7
+ branchdiff-1.3.3.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.29.0
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ branchdiff = branchdiff.__main__:main