snakemake.common.git

Functions

get_git_root(path)

param path:

(str) Path a to a directory/file that is located inside the repo

get_git_root_parent_directory(path, input_path)

This function will recursively go through parent directories until a git repository is found or until no parent directories are left, in which case an error will be raised.

git_content(git_file)

This function will extract a file from a git repository, one located on the filesystem.

split_git_path(path)