summaryrefslogtreecommitdiff
path: root/git-commit-script
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-01-25 21:33:06 -0500
committerShawn O. Pearce <spearce@spearce.org>2007-01-26 00:41:01 -0500
commit5f8b70b1dc3d149782564e04d5d55565a5157d93 (patch)
tree06c4c262fc7f602744d2bd02bb9b17afa6448724 /git-commit-script
parentd070c4cb17e807c157aaeb24d9b80a1112334e57 (diff)
git-gui: Maintain the same file list for diff during refresh.
I just noticed that a file was always jumping to compare against HEAD and the index during a refresh, even if the diff viewer was comparing the index against the working directory prior to the refresh. The bug turned out to be caused by a foreach loop going through all file list names searching for the path. Since $ui_index was the first one searched and the file was contained in that file list the loop broke out, leaving $w set to $ui_index when it had been set by the caller to $ui_workdir. Silly bug caused by using a parameter as a loop index. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-commit-script')
0 files changed, 0 insertions, 0 deletions