AGENT SKILL

understand-commit_message_encoding_encoding_header

暂无简介

License 许可
MIT
最近更新
2026-10-09
Stars
★ 0
Forks
0

03 SKILL.md 正文

understand-commit_message_encoding_encoding_header

CALL NUMBER: deep_commit_object.commit_message_encoding_encoding_header DEFINITION: Optional header line 'encoding <encoding-name>' in a commit object's raw text; git stores whatever the user wrote verbatim.

Invoke this skill to understand commit_message_encoding_encoding_header down to its primitives. The RELATIVE ROOT below is the least-fixed-point closure of everything it bundles from — the full import cone, grouped by the lib each prim comes from. Projected from a prover-typed KB (MAP/SWI-Prolog consistency gate): every reference below resolves.

THE RELATIVE ROOT (the import cone, by lib)

from deep_commit_object

  • commit_message_encoding_encoding_value (d1): The character encoding name stored in the encoding header (UTF-8, ISO-8859-1, Windows-1252, etc.); controls byte-to-character interpretation of the message bytes.
  • commit_message_encoding_message_bytes (d2): Raw byte sequence forming the commit message body; decoded using encoding_value (or assumed UTF-8) to produce display characters.
  • commit_message_encoding_original_encoding (d2): Alias for encoding_value; the encoding recorded at commit time distinguishing the message's original byte interpretation from the display encoding.
  • commit_message_encoding_transcoding_logic (d2): git's internal conversion from the stored encoding_value to the requested log_encoding_flag encoding; uses iconv-style conversion with loss handling.
  • commit_message_encoding_encoding_fallback (d3): Fallback behavior when transcoding_logic cannot map a character; typically replaces with a substitution character or skips the byte.
  • commit_message_encoding_transcoded_message (d3): The output of transcoding_logic: message_bytes decoded then re-encoded into log_encoding_flag; git log emits this to the terminal.
  • commit_message_encoding_display_encoding (d4): The terminal or output stream encoding git uses when writing the transcoded_message; git assumes UTF-8 output if terminal encoding is unset.

CONSUMERS (what needs this)

commit_object, object_type_inspection


Projected from the git internals and the object model KB (162 concepts / 159 relations) — consistency-typed by MAP; the facet list after the colon IS the cross-lib dependency web.

04 同仓库更多 Skills