summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-06-02 18:45:35 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-06-06 05:26:49 (GMT)
commitb61101579fdc647c14a54105a361b549a97c09a4 (patch)
treecd6908c4cdb5895f63687e7453c5700ce8891d3b
parent81fb7efeda2ce14cbb44b91eed37aeeb2e541832 (diff)
downloadgit-b61101579fdc647c14a54105a361b549a97c09a4.zip
git-b61101579fdc647c14a54105a361b549a97c09a4.tar.gz
git-b61101579fdc647c14a54105a361b549a97c09a4.tar.bz2
git-gui: Remove unused commit_list from blame viewer
This list used to store the commits in the order we received them in. I originally was using it to update the colors of the commit before and the commit after the current commit, but since that interface concept turned out to be horribly ugly and has been removed we no longer need this list. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rw-r--r--lib/blame.tcl5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/blame.tcl b/lib/blame.tcl
index 0666dca..a01e223 100644
--- a/lib/blame.tcl
+++ b/lib/blame.tcl
@@ -25,8 +25,7 @@ field highlight_commit {} ; # sha1 of commit selected
field total_lines 0 ; # total length of file
field blame_lines 0 ; # number of lines computed
-field commit_count 0 ; # number of commits in $commit_list
-field commit_list {} ; # list of commit sha1 in receipt order
+field commit_count 0 ; # number of commits loaded
field order ; # array commit -> receipt order
field header ; # array commit,key -> header field
field line_commit ; # array line -> sha1 commit
@@ -309,7 +308,6 @@ method _load {} {
set total_lines 0
set blame_lines 0
set commit_count 0
- set commit_list {}
array unset order
array unset line_commit
array unset line_file
@@ -478,7 +476,6 @@ method _read_blame {fd} {
set order($cmit) $commit_count
incr commit_count
- lappend commit_list $cmit
}
} elseif {[string match {filename *} $line]} {
set file [string range $line 9 end]