simplesurance / baur

An incremental task runner for mono repositories.
GNU General Public License v2.0
360 stars 11 forks source link

gitobject: query db always for resolved symlink paths + disable calculating git object ids on --require-clean-git-worktree #513

Closed fho closed 8 months ago

fho commented 8 months ago

disable calculating git object ids on --require-clean-git-worktree

When --require-clean-git-worktree is specified as commandline parameter, disable calculating git object IDs for files that were not returned "git ls-files".

This is a safe guard, to ensure that only git object IDs are used that already exist in the git repository, calculating them manually is expensive.


gitobject: query db always for resolved symlink paths

If a path for that the digest was requested contained a directory symlink, the file was not found in the db, despite it contains an entry for the symlink target path.

gitobject only resolved paths to symlinks if "git ls files" returned a symlink stauts for them. It's only returned for symlinks though, not for paths to a file that contain a directory symlink path.

If a path can not be found in the db, always resolve symlink in it's path and check if an entry for the resolved path exist.