@matheusbsbs / matheus-bagliano / commits / 7272131b3e
Fork 0

gitk: Fixed broken exception handling in diff

If the tree diff command failed to start for some random reason, treepending remained set, and thus no more diffs were shown after that. Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>

Alexander Gavrilov committed Jul 26, 2008 at 18:48 UTC 7272131b3e49879d3a7bedacad3cdb12ae678ee8
1 file changed +2 -1
gitk
+2 -1
@@ -6457,9 +6457,10 @@ proc diffcmd {ids flags} {
6457 proc gettreediffs {ids} {
6458 global treediff treepending
6459
6460 + if {[catch {set gdtf [open [diffcmd $ids {--no-commit-id}] r]}]} return
6461 +
6462 set treepending $ids
6463 set treediff {}
6462 - if {[catch {set gdtf [open [diffcmd $ids {--no-commit-id}] r]}]} return
6464 fconfigure $gdtf -blocking 0
6465 filerun $gdtf [list gettreediffline $gdtf $ids]
6466 }