git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Brian Downing <bdowning@lavos.net>
Date
Aug 23, 2007, 20:30 UTC
Message-ID
<20070823203024.GF21692@lavos.net>
This commit:
commit a13ee29b975d3a9a012983309e842d942b2bbd44
Author: Shawn O. Pearce <spearce@spearce.org>
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.
    Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

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
Next: Brian Downing
Message 1 of 3 in “[BUG] git-gui: "Stage Hunk For Commit" doesn't work at all anymore”
  1. Brian DowningAug 23, 2007
  2. Brian DowningAug 23, 2007
  3. Shawn O. PearceAug 24, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.