Skip to content

Commit df56a12

Browse files
codexByron
authored andcommitted
Address review comment about diff operands
Review comment: The --no-index comment should describe filesystem path operands rather than pathspecs. Use Git terminology so future maintainers are not misled about the command mode. Validation: ruff check, ruff format --check, and git diff --check.
1 parent 1420058 commit df56a12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git/repo/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class Repo:
209209
]
210210

211211
unsafe_git_diff_options = unsafe_git_revision_options + [
212-
# Treats pathspecs as arbitrary filesystem paths.
212+
# Treats path operands as arbitrary filesystem paths.
213213
"--no-index",
214214
# Reads caller-controlled order patterns from an arbitrary file.
215215
"-O",

0 commit comments

Comments
 (0)