Commit Briefs
CHANGES for 0.131 (tags/0.131)
prevent branches in protected branch namespaces from being rewound
Found by Cas Hariri
sync files from diff.git 5d8f044ef31781fd2b1488a2394b9be344c53f7a398d6025cd7fad7b1f42549e
always print a tab after the file name the way patch extracts the filename from the '---' and '+++' lines (and also Index: etc, ...) is by breaking at the first white space. If there is a tab though, patch will extract everything up to that tab, including whitespaces. This is how it's possible to patch file with whitespaces in them. It's not possible to patch file with tabs or newlines in their name though, unfortunately. ok stsp on the code; regress fixed afterwards.
regress/cmdline: add a patch test for a file name with whitespaces in it
it's already passing, but make sure we won't add regressions.
collapse apply_unveil() into a single function again, with a new parameter
No functional change.
got: Allow shared worktree
Call got_worktree_open_shared and apply_unveil_worktree_ro (where relevant) for commands which will not be modifying the work tree: blame, cat, diff, fetch, info, log, ref, send, status, tag, tree, and branch when in "list" or "show" modes. Patch by Colin Percival
add got_worktree_open_shared
The function open_worktree now takes a flags argument; and both got_worktree_open and got_worktree_open_shared are wrappers around got_worktree_open_flags. Patch by Colin Percival
move privdrop out of the per-process switch statement in gotd's main() function
This might make it easier for -portable to fix the chroot issue mentioned in https://marc.gameoftrees.org/mail/1743195001.95133_0.html The parent process would need to keep running as root, to allow children to start up as root and use chroot() before privdrop.
