Skip to content

Commit 0152b52

Browse files
committed
Update the comment about --mixed and paths
This updates the comment in HEAD.reset about why `--mixed` is omitted from the git command constructed to perform a reset where paths are being passed, adding specific information about the git versions where this is deprecated, and changing the more-info link from an old GitPython issue that is no longer retrievable to #1876.
1 parent 5364053 commit 0152b52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: git/refs/head.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def reset(
9999
if index:
100100
mode = "--mixed"
101101

102-
# It appears some git versions declare mixed and paths deprecated.
103-
# See http://github.com/Byron/GitPython/issues#issue/2.
102+
# Explicit "--mixed" when passing paths is deprecated since git 1.5.4.
103+
# See https://github.com/gitpython-developers/GitPython/discussions/1876.
104104
if paths:
105105
mode = None
106106
# END special case

0 commit comments

Comments
 (0)