version_add() checks its arguments before creating the git branch, and needs raw_description with raw_new_version
version_add(): fix adding a version that already exists, which nested it inside the existing version
version_add(): fix new intermediate versions also getting a copy of the raw data of their source version
path_resrepo(): fix paths with version, which pointed to versions/<version>/data/ instead of versions/<version>/
version_add(): fix repositories with more than one git remote (only origin is used)
version_add(): fix ssh:// remote urls, which were not supported
version_add(): fix empty https credentials when the token is in GITHUB_PAT or the remote is not on GitHub
version_relink(): fix cloned repositories with a resources_path that holds versions/, which were linked to new, empty directories
knit_to_results(): fix moving other files whose names end with the name of the .Rmd file (e.g. notes_test.md for test.Rmd)
knit_to_results(): fix .Rmd files with a dot in their name; outputs take the names rmarkdown gives them (my file.Rmd gives my-file.html)
create_rmd(): fix the template, which could only be knitted in RStudio
path_relative(): fix paths to directories that share the start of their name (e.g. abc and abd), and to names with ( or [
version_setup() and version_relink(): fix the check that resources_path is not the root of the repository when run from a subdirectory
version_setup() stops if the backup question is cancelled, not only if answered “No”
the source of the resrepo package is also recognised, and refused, by its DESCRIPTION, not only by the name of its folder
version_setup() ignores only the versions directory at the root (it ignored any directory called versions); version_relink() corrects this
version_add(): fix the meta file of raw and intermediate versions with the same name, which kept only the raw one
version_add() gains push: push = FALSE creates the version locally, without credentials; remotes on a local path or http:// are now pushed to
version_add() copies the data before changing anything in git, pushes last, and undoes its changes if it fails before the push
version_add() refuses version names reserved by the file system (e.g. aux, con, ..), which became empty
version_add() refuses a detached HEAD, and its undo also runs on interrupts and keeps the original error
the links from data/ to versions/ are relative (except on Windows), so that a repository keeps working when moved; links to external storage are absolute, even when resources_path is given as a relative path
version_relink() stops if the versions in use are missing, instead of creating them empty (new create = TRUE does that)
resources_path is always the directory that holds versions/ (or versions/ itself), and cannot be inside the repository
the git hooks are installed where git looks for them (worktrees, submodules, core.hooksPath), and existing hooks are kept and run (e.g. git-lfs)
the git hooks do nothing in repositories not versioned by resrepo (e.g. shared through core.hooksPath, with a warning)
init_resrepo() on an existing project keeps its files and .gitignore, and commits only the files it creates (it used to commit everything)
init_resrepo(path) initialises the repository at path (it used the working directory); path in version_add() is deprecated (it was ignored)
knit_to_results() moves the output of any format (e.g. .pptx, .rtf), and the .tex of keep_tex
data_dir_link(): fix silently deleting directories that contain only hidden files
version_add() refuses dot-prefixed names, raw_in_use/intermediate_in_use, non-scalar or NA names, and names already present in data/version_meta/
git hooks: fix CRLF line endings in *_in_use.meta, verify raw/ and intermediate/ subdirectories exist, skip file checkouts (git checkout --), and let git worktree add succeed before version_relink()
install post-commit and post-rewrite git hooks so resolving merge conflicts on *_in_use.meta, rebasing version branches, and git revert keep data links in sync
version_relink(): fix retries after a failed relink on a clone, single missing links, dangling /versions links, stale or old absolute links, switching back to local versions/, and committing .gitignore on a detached HEAD or without a configured git user identity
version_setup(): check data/raw and data/intermediate exist upfront, handle missing .gitignore, pre-ignored data directories, and read-only raw data subdirectories