Skip to content

Commit

Permalink
gitk: Make line origin search update the busy status
Browse files Browse the repository at this point in the history
Currently the 'show origin of this line' feature does not update the
status field of the gitk window, so it is not evident that any
processing is going on.  It may seem at first that clicking the item
had no effect.

This commit adds calls to set and clear the busy status with an
appropriate title, similar to other search commands.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Alexander Gavrilov authored and Paul Mackerras committed Dec 1, 2008
1 parent a8833ef commit f341307
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -3402,6 +3402,7 @@ proc show_line_source {} {
error_popup [mc "Couldn't start git blame: %s" $err]
return
}
nowbusy blaming [mc "Searching"]
fconfigure $f -blocking 0
set i [reg_instance $f]
set blamestuff($i) {}
Expand All @@ -3415,6 +3416,7 @@ proc stopblaming {} {
if {[info exists blameinst]} {
stop_instance $blameinst
unset blameinst
notbusy blaming
}
}

Expand All @@ -3429,6 +3431,7 @@ proc read_line_source {fd inst} {
}
unset commfd($inst)
unset blameinst
notbusy blaming
fconfigure $fd -blocking 1
if {[catch {close $fd} err]} {
error_popup [mc "Error running git blame: %s" $err]
Expand Down

0 comments on commit f341307

Please sign in to comment.