gitwise-cli 0.34.1__py3-none-any.whl → 0.34.2__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.
gitwise/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """gitwise -- CLI for optimizing git workflows and coding-agent integration."""
2
2
 
3
- __version__ = "0.34.1"
3
+ __version__ = "0.34.2"
4
4
 
5
5
 
6
6
  def get_version() -> str:
gitwise/audit.py CHANGED
@@ -8,6 +8,7 @@ from pathlib import Path
8
8
  from typing import Any
9
9
 
10
10
  from gitwise.git import (
11
+ _get_timeout,
11
12
  gpg_status,
12
13
  has_commit_graph,
13
14
  has_remote,
@@ -112,13 +113,18 @@ def _run_git_sizer(cwd: Path) -> dict | None:
112
113
  """Run ``git-sizer`` if available and return its JSON output, or None."""
113
114
  if not shutil.which("git-sizer"):
114
115
  return None
115
- r = subprocess.run(
116
- ["git-sizer", "--threshold=2", "--json"],
117
- cwd=cwd,
118
- capture_output=True,
119
- text=True,
120
- check=False,
121
- )
116
+ try:
117
+ r = subprocess.run(
118
+ ["git-sizer", "--threshold=2", "--json"],
119
+ cwd=cwd,
120
+ capture_output=True,
121
+ text=True,
122
+ check=False,
123
+ timeout=_get_timeout("git-sizer"),
124
+ )
125
+ except subprocess.TimeoutExpired:
126
+ debug("git-sizer timed out")
127
+ return None
122
128
  if r.returncode not in (0, 1):
123
129
  return None
124
130
  import json
gitwise/conflicts.py CHANGED
@@ -4,7 +4,7 @@ import subprocess
4
4
  import tempfile
5
5
  from pathlib import Path
6
6
 
7
- from gitwise.git import require_root
7
+ from gitwise.git import _GIT_ENV, require_root
8
8
  from gitwise.git import run as git_run
9
9
  from gitwise.i18n import t
10
10
  from gitwise.output import (
@@ -27,6 +27,7 @@ def _git_bytes(args: list[str], *, cwd: Path) -> tuple[int, bytes, bytes]:
27
27
  ["git", *args],
28
28
  cwd=cwd,
29
29
  capture_output=True,
30
+ env=_GIT_ENV,
30
31
  timeout=120,
31
32
  )
32
33
  return r.returncode, r.stdout, r.stderr
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitwise-cli
3
- Version: 0.34.1
3
+ Version: 0.34.2
4
4
  Summary: Python CLI for optimizing git workflows and Claude Code integration
5
5
  Project-URL: Homepage, https://github.com/drzioner/gitwise
6
6
  Project-URL: Repository, https://github.com/drzioner/gitwise
@@ -1,4 +1,4 @@
1
- gitwise/__init__.py,sha256=e4PFMJ7QHbp0Jxp0kam9uR7oK6wcLvMhwu1srlht6pU,432
1
+ gitwise/__init__.py,sha256=J65EqE0j1_NcQFH4XCgKopAMMFlY1qvLEgALjnH5PK8,432
2
2
  gitwise/__main__.py,sha256=seS0qQDTl0WH4FHBeNA_HGJtnpXnfRqi8qCc7C3MbIc,5186
3
3
  gitwise/_cli_completions.py,sha256=TlVH42FLU6_1vpTpbxKp-i7r6B8yPtk_LZ3D2l8HMWI,6570
4
4
  gitwise/_cli_dispatch.py,sha256=8cPF9dLD0n5l-4O0XeAGuvZz9_AQyJfdKg6wnV4ckE8,19161
@@ -8,11 +8,11 @@ gitwise/_cli_setup_agents.py,sha256=ErDGdTVCx-b416LnkH5yZzHqYEiO2rkBvYtHDi59mW4,
8
8
  gitwise/_i18n_data.json,sha256=WJmNbKqiIGWxFLkP3jiKvVOkqqjuPEA2fuEDUpXT7qc,70802
9
9
  gitwise/_paths.py,sha256=VRkql9HQ5_OjwbpcX-18fwe_lMpuQffP4AiBV6suSFg,658
10
10
  gitwise/_runtime_config.py,sha256=EF0NOlNNvEf9awRsfHr0Ma7MNgy4Fl3aPbLY9HEVEpQ,8350
11
- gitwise/audit.py,sha256=32NgupNXHEZI-bjS2bkTKm8C5BieukNszo1BnKpE1Aw,11125
11
+ gitwise/audit.py,sha256=644-WhyxelBS6lkSKvidQgOXGSs-UWwyWKfxphQ8PSE,11322
12
12
  gitwise/branches.py,sha256=rCl0oV8Us1qTDlaHVHihlmTkQz-qmQL6tL4lg-ttj2w,7748
13
13
  gitwise/clean.py,sha256=pU6TA40T1dr7z3RomRY8VU5B3_laDdbsXpWDrdpRVZM,7024
14
14
  gitwise/commit.py,sha256=VmoDrf-yqFKqMi0gcl74RYS525gbnrdQhQSoy-Q3UKk,9714
15
- gitwise/conflicts.py,sha256=rM1q8ZoDIcrkjg-Q6reGLm2mx5Z88zGuSk3C4iZpJ64,8470
15
+ gitwise/conflicts.py,sha256=eyTmqA4HEavn-rW7xCA3TSSaZq3VE5gmVH2BONM_Ah8,8502
16
16
  gitwise/context.py,sha256=Drxv7isxsQy4haf5uo0BTCugvaClT_qUAWoLw-IdJ8Y,6240
17
17
  gitwise/design.py,sha256=9P_XJc6P_glRc9DPOwb_VbnxaB-ekFRcd71rcs4JWc8,12936
18
18
  gitwise/diff.py,sha256=6FBLC2NOitaOpAdLveMNN1BG3G8DmYsUGmvWFu2RQFY,21163
@@ -148,8 +148,8 @@ gitwise/share/schemas/v1/output/tag.json,sha256=EPDFtSjrPXqUJfhf0j8ciCrEhjACq1VW
148
148
  gitwise/share/schemas/v1/output/undo.json,sha256=eVCVYhGNnUF025ExbxHygaRzWybGCWFhp540U5JMk60,1467
149
149
  gitwise/share/schemas/v1/output/update.json,sha256=Gm0ACHlpgRhOr1-qrV6fAXxi_Pcbv9zsfZ17_2btJVs,1411
150
150
  gitwise/share/schemas/v1/output/worktree.json,sha256=55Z6wgv0BOV4YhAZAqLI0vgKXIBcw0Xspbn0N0tW0I4,1929
151
- gitwise_cli-0.34.1.dist-info/METADATA,sha256=YWG66TWp0IiG-B8N0LI8G6tYUI_SVUywPJ1iErsHA2c,7563
152
- gitwise_cli-0.34.1.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
153
- gitwise_cli-0.34.1.dist-info/entry_points.txt,sha256=m3_cGIC4VTGp7Wn5_s7NBPACs9Yiwdn4ZBWUBX4PMfQ,77
154
- gitwise_cli-0.34.1.dist-info/licenses/LICENSE,sha256=vfJO-ThMtWhZOD9MsArN2yul1EJmxAXxfeGHKnEk9QQ,1063
155
- gitwise_cli-0.34.1.dist-info/RECORD,,
151
+ gitwise_cli-0.34.2.dist-info/METADATA,sha256=k_m8SR6AaRdacN-Bz8FgPtsMqGotH4DK5E1V_pkdXoY,7563
152
+ gitwise_cli-0.34.2.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
153
+ gitwise_cli-0.34.2.dist-info/entry_points.txt,sha256=m3_cGIC4VTGp7Wn5_s7NBPACs9Yiwdn4ZBWUBX4PMfQ,77
154
+ gitwise_cli-0.34.2.dist-info/licenses/LICENSE,sha256=vfJO-ThMtWhZOD9MsArN2yul1EJmxAXxfeGHKnEk9QQ,1063
155
+ gitwise_cli-0.34.2.dist-info/RECORD,,