author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 30 Jul 2007 00:29:52 +0000 (20:29 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 30 Jul 2007 03:44:51 +0000 (23:44 -0400) | ||
commit | 37e2199c4c5b45e060f973097d814726cabe2a86 | |
tree | 229c4a2dce08c358e14c5bbe94a22ac51c6484f9 | tree | snapshot |
parent | 95af4d8de16e8e681c196fce6d42e40909933115 | commit | diff |
git-gui: Don't offer to stage hunks from untracked files
If the user looks at an untracked file in our diff pane we used
to offer "Stage Hunk For Commit" in the context menu when they
right-clicked in that pane. The problem is we don't actually
have any diff hunks in untracked files, so there is nothing to
really select for staging. So we now grey out the menu item,
so the user cannot invoke it and think its broken when it does
not perform any useful action.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
If the user looks at an untracked file in our diff pane we used
to offer "Stage Hunk For Commit" in the context menu when they
right-clicked in that pane. The problem is we don't actually
have any diff hunks in untracked files, so there is nothing to
really select for staging. So we now grey out the menu item,
so the user cannot invoke it and think its broken when it does
not perform any useful action.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |