analysis/app: add "commit" tooltip to trend

This makes the graphs produced by /trend much more useful by exposing
the actual commit SHA in addition to the index.

Change-Id: Ia8b11278752bcd95322740afb5c17783db74e944
Reviewed-on: https://go-review.googlesource.com/47510
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/analysis/app/trend.go b/analysis/app/trend.go
index 6bf5a64..88d88ab 100644
--- a/analysis/app/trend.go
+++ b/analysis/app/trend.go
@@ -151,7 +151,10 @@
 
 	tables := data.Tables()
 	infof(ctx, "tables: %v", tables)
-	columns := []column{{Name: "commit-index"}}
+	columns := []column{
+		{Name: "commit-index"},
+		{Name: "commit", Role: "tooltip"},
+	}
 	for _, prefix := range ar.Prefixes {
 		if len(ar.Prefixes) == 1 {
 			columns = append(columns,