Skip to content

In git-gui I cannot stage hunks of files added with 'git add --intent-to-add' anymore since 2.28 #2779

@pascalmuller

Description

@pascalmuller
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.28.0.windows.1
cpu: x86_64
built from commit: 77982caf269b7ee713a76da2bcf260c34d3bf7a7
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.18363.959]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VIM
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: WinSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

NO

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Bash

$ echo "test" > text.txt
$ git add -N text.txt
$ git gui
I then try to stage the hunk or a line in the test.txt file in git gui using the right click menu. 
  • What did you expect to occur after running these commands?

I expected that I could add a hunk or line in the new file, instead nothing happens after clicking one of these options in the context menu. To make sure you understand me, I added a screenshot of the context menu in question:

context-menu-git-gui

  • What actually happened instead?

The hunk can not be added through the GUI. (nothing happens after clicking this option in the right click menu) Also note that the terminal prints the following errors as well while starting git gui:

error: no icon for .vpane.files.workdir.list state={A} text.txt
error: no desc for state={AA} text.txt

I downgraded to 2.27.0 to validate if the recent upgrade broke this. In 2.27.0 everything works fine! No error is printed when starting git gui and i can add a hunk or line using the right click menu.

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

I can replicate this problems in multiple repositories.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions