Function
diff_target_summary
(diff_target: dict[str, str])
Source from the content-addressed store, hash-verified
| 2895 | |
| 2896 | |
| 2897 | def 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 | |
| 2906 | def workspace_state( |
Tested by
no test coverage detected