Skip to content

Commit 862d350

Browse files
committed
Add note about caching
1 parent 8d63142 commit 862d350

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
@@ -66,6 +66,7 @@ def _build_git_ssh_command() -> str:
6666
return ssh_cmd
6767

6868

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

0 commit comments

Comments
 (0)