Update absolutizedAlternates so that instead of ReadAll, we only read the first line,…
Jump to turn (7)
- 1Update absolutizedAlternates so that instead of ReadAll, we only read the first
- 2Add table driven tests to confirm: limit of data being loaded, lines starting wi
- 3Add a TestOpenPathMultipleAlternates to consider nested relative alternates
- 4Add a test to confirm linked worktree + relative alternate in common dir works
- 5Review the current logic, ensuring that we support multiple uncommented lines -
- 6commit changes
- 7cmd.Env is built via append(os.Environ(), "ENTIRETESTTTY=0", "GITTERMINALPROMPT=
- User
Update absolutizedAlternates so that instead of ReadAll, we only read the first line, limiting it to 4096 length.
Assistant· claude-opus-4-7
Now I'll update the function to read only the first line, capped at 4096 bytes.
Assistant· claude-opus-4-7
Updating to also skip comment lines (those starting with
#).Assistant· claude-opus-4-7
Now let me verify the file compiles and passes tests.