Add comment to odin root about why there's no newline

Add comment to `odin root` about why there's no newline, and why we closed #6834 and #6871.

Future such pull requests will be closed without comment.
This commit is contained in:
Jeroen van Rijn
2026-06-22 15:40:21 +02:00
parent 6cf57c1eaa
commit 778d3b97b6

View File

@@ -3842,6 +3842,10 @@ int main(int arg_count, char const **arg_ptr) {
usage(args[0]);
return 1;
}
// NOTE(Jeroen): `odin root` omits it on purpose so that it can be used in scripts.
// e.g. `ODIN_CORE="$(odin root)core"`.
// Human convenience is not a consideration.
// Further pull requests to a newline will be closed without comment.
gb_printf("%.*s", LIT(odin_root_dir()));
return 0;
} else if (command == "clear-cache") {