Skip to content

Commit 4626df2

Browse files
committed
Add note about caching
1 parent a1ee81d commit 4626df2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dfetch/vcs/git.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def _build_git_ssh_command() -> str:
6969
return ssh_cmd
7070

7171

72+
# As a cli tool, we can safely assume this remains stable during the runtime, caching for speed is better
7273
@functools.lru_cache
7374
def _extend_env_for_non_interactive_mode() -> dict[str, str]:
7475
"""Extend the environment vars for git running in non-interactive mode.

0 commit comments

Comments
 (0)