Skip to content

Commit 32c849b

Browse files
committed
fixed issues with stashlist diff view not updating to match selected item
1 parent 8681578 commit 32c849b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

git-webui/release/share/git-webui/webui/js/git-webui.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,11 +1256,11 @@ webui.StashCommitView = function(stashView) {
12561256
var self = this;
12571257

12581258
self.update = function(entry) {
1259-
if (currentCommit == entry.commit) {
1260-
// We already display the right data. No need to update.
1261-
return;
1259+
// if (currentCommit == entry.commit) {
1260+
// // We already display the right data. No need to update.
1261+
// return;
12621262

1263-
}
1263+
// }
12641264
currentCommit = entry.commit;
12651265
self.showDiff();
12661266
diffView.update("stash show -p stash@{"+entry.stashIndex+"}");

git-webui/src/share/git-webui/webui/js/git-webui.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,11 +1256,7 @@ webui.StashCommitView = function(stashView) {
12561256
var self = this;
12571257

12581258
self.update = function(entry) {
1259-
if (currentCommit == entry.commit) {
1260-
// We already display the right data. No need to update.
1261-
return;
12621259

1263-
}
12641260
currentCommit = entry.commit;
12651261
self.showDiff();
12661262
diffView.update("stash show -p stash@{"+entry.stashIndex+"}");

0 commit comments

Comments
 (0)