Skip to contentSkip to conversation

git-gui: "Stage Hunk For Commit" doesn't work at all anymore

BUG Brian Downing 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

This commit:

commit a13ee29b975d3a9a012983309e842d942b2bbd44

Author: Shawn O. Pearce <[email protected]>
Date:   Thu Aug 2 22:55:22 2007 -0400

git-gui: Avoid Tcl error in popup menu on diff viewer

If there is no path currently shown in the diff viewer then we were getting Tcl errors anytime the user right-clicked on the diff viewer to bring up its popup menu. The bug here is caused by trying to get the file_state for the empty string; this path is never seen so we never have file_state for it. In such cases we now disable the Stage Hunk For Commit option.

seems to have broken the "Stage Hunk For Commit" option entirely for me -- it is now disabled whether or not there is a patch in the viewer.

-bcd

#1 lore raw
Quoted 6 lines · Brian Downing

This commit:

commit a13ee29b975d3a9a012983309e842d942b2bbd44

seems to have broken the "Stage Hunk For Commit" option entirely for me -- it is now disabled whether or not there is a patch in the viewer.

Sorry, I just saw the following commit in the git-gui tree:

ce015c213fbef39140b6192db28110bc666dc6c8
git-gui: Paper bag fix "Stage Hunk For Commit" in diff context menu

So it appears this issue is known. Sorry about the noise.

(Though this will be merged before 1.5.3, right?)

-bcd

#2 lore raw
Quoted 7 lines · Brian Downing
Quoted 6 lines · Brian Downing

This commit:

commit a13ee29b975d3a9a012983309e842d942b2bbd44

seems to have broken the "Stage Hunk For Commit" option entirely for me -- it is now disabled whether or not there is a patch in the viewer.

Yea, that commit was a dud. I noticed it myself a few days ago and fixed the dang thing. I don't know what I was thinking when I made that commit...

Quoted 6 lines

Sorry, I just saw the following commit in the git-gui tree:

ce015c213fbef39140b6192db28110bc666dc6c8
git-gui: Paper bag fix "Stage Hunk For Commit" in diff context menu

So it appears this issue is known. Sorry about the noise.

No problem. Better that someone raises an issue than just pretend like its not there...

Quoted 1 line

(Though this will be merged before 1.5.3, right?)

Yes. It will be in git-gui 0.8.2, which Junio has agreed to merge into 1.5.3 before it goes final. I'll likely tag git-gui 0.8.2 tomorrow, then ask him to pull when he has the chance.

Signature · 1 line
Shawn.