Commits


move code which forks child processes into a subroutine, reducing copy-pasta


move functions which open objects into new file object_open_privsep.c For the future, this will make it possible to provide alternative implementations of functions now stored in object_open_privsep.c. This will probably be needed by future gotd(8) which runs inside a chroot(2) environment and without the "exec" pledge(2) promise, making it impossible to run libexec helpers on the fly. Details of this design are not yet settled, but moving functions into a separate compilation unit won't hurt in any case.


the my_refs reflist in delete_missing_refs() must be freed on exit


sync files from diff.git 674563ab136a2aa34dc4d93043d92235a2ae98ba


document global tog options earlier; suggested by op@


sync usage with reality The -h and -V/--version flags must be given before the command; with those flags the command is actually optional, but don't over-complicate the usage string with these nitpicks. ok/improvements stsp@


gotwebd.conf: add syntax for defining macros and document them macros are already supported by parse.y but can only be defined with the -D flag. This adds the ``usual'' syntax for macros: varname = string. While here, fix the markup of the -D flag in the SYNOPSIS and sync the global `grammar' yacc rule with other parse.y grammars in base: - add the /* empty */ comment - increment file->errors on errors ok stsp@, "sure, go for it" tracey@


disallow integrating into references outside refs/heads/ Spotted by stsp@ while considering a feature request for cmd_integrate. ok stsp@


correct wrong 0.76 release date in CHANGES


bump version number


sync distfile list


CHANGES for 0.76


sync files from diff.git 1edd9c2b609adfa7ed93dbd839b7d683e695feaa Brings in improved accuracy of function prototypes in hunk headers.


update test_unstage_patch_added expected diff output, new files show mode now


backout Make & command in tog's log view display "searching..." The limit feature is more than just a search operation, tog's man page has been updated accordingly.


document caveat when configuring gotwebd to listen on a network interface


remove tog limit feature from TODO list


tweak view name display in the help screen for clarity


improve documentation of the tog limit feature, previous doc was misleading


Make & command in tog's log view display "searching..." while loading commits. This command acts like a search operation, and the display should reflect that.


show file mode for new added files in work tree diffs Make work tree diffs of local changes on disk display the file mode of new added files like other versions of `got diff` currently do. ok stsp@


gotwebd: drop needless NULL check We can assume that the querystring was initialized when we reach gotweb_render_header. ok tracey@


ensure got patch respects x-bit perms for new files Reported by stsp on IRC: got patch failed to set the x-bit for a new file despite got diff recording mode 755. Parse got and git diffs for this data and set file modes accordingly. Tweaked with hint from op. ok stsp@


add regression test which covers fast-forward rebase + path-prefix


add gotadmin init -b <branch> to specify repo head ref Similar to `git init -b`. Includes a change to `got import` behaviour such that "main" is no longer hardcoded by default; instead, we import to the branch resolved via the repository's HEAD reference unless `got import -b` is used, and only if HEAD cannot be resolved to a branch do we fallback to "main". includes fix plus ok from stsp@