MCPcopy Index your code
hub / github.com/openai/plugins / diff_target_summary

Function diff_target_summary

plugins/codex-security/scripts/workbench_db.py:2897–2903  ·  view source on GitHub ↗
(diff_target: dict[str, str])

Source from the content-addressed store, hash-verified

2895
2896
2897def diff_target_summary(diff_target: dict[str, str]) -> str:
2898 kind = diff_target["kind"]
2899 if kind == "working_tree":
2900 return "Uncommitted changes"
2901 if kind == "commit":
2902 return f"Commit {diff_target['headRevision'][:7]}"
2903 return f"{diff_target['baseRevision'][:7]}…{diff_target['headRevision'][:7]}"
2904
2905
2906def workspace_state(

Callers 1

save_workspaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected