Worldbuilding Design Lab

Worldbuilding Design Lab ·

The lore phrase may be in a change without appearing in its commit message

Choose between searching commit messages and searching changes to a lore phrase, because Git’s message grep and content pickaxe answer different questions.

A worldbuilding team remembers replacing an old council name, but searching the Git history for that name finds nothing. The commit may have a message such as “Revise chapter background,” even though the changed note contains the phrase being investigated.

Git's log documentation distinguishes message filtering from searching differences. The grep option filters commit log messages. The -S option looks for changes in the number of occurrences of a specified string in file differences. A phrase's presence in an edited note does not mean it appears in the message describing that edit.

State what kind of evidence you remember

If you remember the wording of a commit message, search messages. If you remember text that was introduced or removed in a tracked lore file, consider the content-change search. Keep the branch or revision range and any file-path restriction explicit so the result has a known scope.

Inspect the candidate commit rather than treating a match as an explanation. Git show can present a commit's message and textual difference. Read the changed passage in context: the council name might be an example, a rejected alternative or part of an unrelated quotation.

Respect the occurrence-count limitation. The -S search is not a general search for every edit on a line containing the phrase. Git documents an example where changing a line without changing the number of matching occurrences does not satisfy that test. Its -G option addresses added or removed patch lines matching a regular expression, which is a different question again.

If a search is empty, revisit the scope and the kind of evidence being sought. Do not infer that the phrase never existed anywhere in the project. The relevant change may be outside the selected history, outside the specified path or different from the addition-or-removal pattern being searched.

Record the identified commit and the reason it matters to the lore decision. Compare project storage through the shop when needed. First choose a history search that matches the remembered evidence, so a vague message does not hide a useful content change from the review.

Sources and further reading

This is general information. Check the relevant authority or manufacturer for the rules, compatibility and terms that apply to your situation.

More practical guides