Steps to reproduce:
- download and unpack partial-staging-and-custom-diff.zip
- cd partial-staging-and-custom-diff
- git gui
- RMB on changed lines
Behavior:
"Stage Hunk/Line For Commit" menu entries are grayed out as in the image below

Expected behavior:
"Stage Hunk/Line For Commit" menu entries shouldn't be are grayed out.
Additional Info:
-
Version
git-gui version 0.21.0.116.g0730a
git version 2.43.0
Tcl/Tk version 8.6.12
Aspell 0.60.8, pl
-
The issue occurs when I have a ".gitattributes" file with following contents *.txt diff=myDiff and
in the ".git/config" following contents
[diff "myDiff"]
textconv=cat
binary=false
git add -i respects binary=false set under [diff "myDiff"] and allows me to "Stage Hunk/Line For Commit" as in the image below

It would not allow me to do so if binary=true. Meanwhile git gui doesn't allow me to do so in either case.
Steps to reproduce:
Behavior:
"Stage Hunk/Line For Commit" menu entries are grayed out as in the image below

Expected behavior:
"Stage Hunk/Line For Commit" menu entries shouldn't be are grayed out.
Additional Info:
Version
git-gui version 0.21.0.116.g0730a
git version 2.43.0
Tcl/Tk version 8.6.12
Aspell 0.60.8, pl
The issue occurs when I have a ".gitattributes" file with following contents
*.txt diff=myDiffandin the ".git/config" following contents
git add -irespectsbinary=falseset under[diff "myDiff"]and allows me to "Stage Hunk/Line For Commit" as in the image belowIt would not allow me to do so if
binary=true. Meanwhilegit guidoesn't allow me to do so in either case.