author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 18:22:26 +0000 (13:22 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 22 Jan 2007 03:47:54 +0000 (22:47 -0500) | ||
commit | 6bdc929984f84318783ef320115f46151fa4f0d6 | |
tree | f5edb4c6dd9223bf800040d4f8609fc8bf00663e | tree | snapshot |
parent | 079d0d5057dd66916c8d23802d48b19235fedf09 | commit | diff |
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>
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 | diff | blob | history |