Skip to content

Commit

Permalink
Update the comment about --mixed and paths
Browse files Browse the repository at this point in the history
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 gitpython-developers#1876.
  • Loading branch information
EliahKagan committed Apr 1, 2024
1 parent 5364053 commit 0152b52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git/refs/head.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def reset(
if index:
mode = "--mixed"

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

0 comments on commit 0152b52

Please sign in to comment.