oct
Loading...
Searching...
No Matches
commit_observer.py File Reference

Go to the source code of this file.

Namespaces

namespace  oct
namespace  oct.git
namespace  oct.git.commit_observer

Functions

str oct.git.commit_observer._hash_file (Path path)
list[tuple[str, str]] oct.git.commit_observer._tracked_entries (Path repo_root)
set[str] oct.git.commit_observer._dirty_paths (Path repo_root)
 oct.git.commit_observer._make_escape_check (Path repo_root)
dict[str, str] oct.git.commit_observer.snapshot_unstaged_tracked (Path repo_root, set[str]|None staged_set=None, *, str method=METHOD_HASH, set[str]|None also_hash=None)
list[str] oct.git.commit_observer.diff_snapshots (dict[str, str] before, dict[str, str] after)

Variables

int oct.git.commit_observer._MAX_HASH_BYTES = 10 * 1024 * 1024
str oct.git.commit_observer._OVERSIZE_SENTINEL = "OVERSIZE"
str oct.git.commit_observer._MISSING_SENTINEL = ""
str oct.git.commit_observer._CLEAN_SENTINEL = "CLEAN"
str oct.git.commit_observer.METHOD_GIT = "git"
str oct.git.commit_observer.METHOD_HASH = "hash"
tuple oct.git.commit_observer.OBSERVE_METHODS = (METHOD_GIT, METHOD_HASH)
str oct.git.commit_observer._GITLINK_MODE = "160000"
str oct.git.commit_observer._SYMLINK_MODE = "120000"