MCPcopy
hub / github.com/GitGuardian/ggshield / scenario_rename

Function scenario_rename

tests/unit/core/scan/test_commit.py:181–186  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

179
180
181def scenario_rename(repo: Repository) -> None:
182 path = create_file(repo, "old file.txt")
183 repo.add(path)
184 repo.create_commit()
185 repo.git("mv", path.name, "new file.txt")
186 repo.create_commit()
187
188
189def scenario_chmod(repo: Repository) -> None:

Callers

nothing calls this directly

Calls 4

create_fileFunction · 0.85
create_commitMethod · 0.80
gitMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected