(message: str)
| 1034 | return bool((out or "").strip()) |
| 1035 | |
| 1036 | def commit_staged(message: str) -> bool: |
| 1037 | if not staged_has_changes(): |
| 1038 | return False |
| 1039 | rc, out = run_rc(["git", "commit", "-m", message], cwd=str(LOCAL_DIR), capture=True) |
| 1040 | if rc != 0: |
| 1041 | print("[!] Git commit failed.") |
| 1042 | if out: |
| 1043 | print(out) |
| 1044 | return False |
| 1045 | return True |
| 1046 | |
| 1047 | def push_current() -> bool: |
| 1048 | ensure_main_branch() |
no test coverage detected