git-gui: Clear diff from viewer if the side changed.
commit6bdc929984f84318783ef320115f46151fa4f0d6
authorShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 18:22:26 +0000 (21 13:22 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 22 Jan 2007 03:47:54 +0000 (21 22:47 -0500)
treef5edb4c6dd9223bf800040d4f8609fc8bf00663e
parent079d0d5057dd66916c8d23802d48b19235fedf09
git-gui: Clear diff from viewer if the side changed.

If the user switches the currently shown file from one side of the UI
to the other then how its diff is presented would be different.  And
leaving the old diff up is downright confusing.

Since the diff is probably not interesting to the user after the switch
we should just clear the diff viewer.  This saves the user time, as they
won't need to wait for us to reload the diff.

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