MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / commit_staged

Function commit_staged

Scripts/Developer Base/Dead Man's Switch.py:1036–1045  ·  view source on GitHub ↗
(message: str)

Source from the content-addressed store, hash-verified

1034 return bool((out or "").strip())
1035
1036def 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
1047def push_current() -> bool:
1048 ensure_main_branch()

Callers 8

create_switch_only_newFunction · 0.70
wipe_repo_filesFunction · 0.70
do_pushFunction · 0.70
publish_static_websiteFunction · 0.70
clean_repository_menuFunction · 0.70

Calls 3

printFunction · 0.85
staged_has_changesFunction · 0.70
run_rcFunction · 0.70

Tested by

no test coverage detected