+# -- Standard bindings
+#
+bind . <Destroy> do_quit
+bind all <$M1B-Key-q> do_quit
+bind all <$M1B-Key-Q> do_quit
+bind all <$M1B-Key-w> {destroy [winfo toplevel %W]}
+bind all <$M1B-Key-W> {destroy [winfo toplevel %W]}
+
+# -- Not a normal commit type invocation? Do that instead!
+#
+switch -- [lindex $argv 0] {
+blame {
+ if {[llength $argv] == 3} {
+ set current_branch [lindex $argv 1]
+ show_blame $current_branch [lindex $argv 2]
+ return
+ } else {
+ puts stderr "usage: $argv0 blame commit path"
+ exit 1
+ }
+}
+{} {}
+default {
+ puts stderr "usage: $argv0 \[{blame}\]"
+ exit 1
+}
+}
+