Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/GitGuardian/ggshield
/ add
Method
add
tests/repository.py:43–44 ·
view source on GitHub ↗
(self, *args: Union[str, Path])
Source
from the content-addressed store, hash-verified
41
return
cls(path, remote_url=str(url))
42
43
def
add(self, *args: Union[str, Path]):
44
self.git(
"add"
, *args)
45
46
def
push(self, *args: str) -> None:
47
self.git(
"push"
, *args)
Callers
15
test_list_files_git_repo
Function · 0.45
test_get_filepaths_from_ref
Function · 0.45
test_get_staged_filepaths
Function · 0.45
test_tar_from_ref_and_filepaths
Function · 0.45
test_no_duplicate_gitignore_entry_tracked_file
Function · 0.45
scenario_add
Function · 0.45
scenario_add_unusual_chars
Function · 0.45
scenario_add_two
Function · 0.45
scenario_modify
Function · 0.45
scenario_remove
Function · 0.45
scenario_rename
Function · 0.45
scenario_chmod
Function · 0.45
Calls
1
git
Method · 0.95
Tested by
15
test_list_files_git_repo
Function · 0.36
test_get_filepaths_from_ref
Function · 0.36
test_get_staged_filepaths
Function · 0.36
test_tar_from_ref_and_filepaths
Function · 0.36
test_no_duplicate_gitignore_entry_tracked_file
Function · 0.36
scenario_add
Function · 0.36
scenario_add_unusual_chars
Function · 0.36
scenario_add_two
Function · 0.36
scenario_modify
Function · 0.36
scenario_remove
Function · 0.36
scenario_rename
Function · 0.36
scenario_chmod
Function · 0.36