Code

git-gui: Only allow Refresh in diff context menu when we have a diff.
authorShawn O. Pearce <spearce@spearce.org>
Thu, 25 Jan 2007 01:39:30 +0000 (20:39 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 25 Jan 2007 05:25:32 +0000 (00:25 -0500)
commit86773d9bfc6124dec7b33094103f4819684bc4ae
tree5937860307b700ce3ac08681f3a5d499c215fc9a
parentbb816c5a25e3a87d4d9588ddcccf83b8a10d8d31
git-gui: Only allow Refresh in diff context menu when we have a diff.

There is no reason to attempt refreshing an empty diff viewer, so
the Refresh option of our diff context menu should be disabled when
there is no diff currently shown.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh