]> git.ipfire.org Git - thirdparty/git.git/commit
gitweb: correctly store previous rev in javascript-actions mode
authorRobert Luberda <robert@debian.org>
Sun, 27 Oct 2019 09:14:26 +0000 (10:14 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Oct 2019 02:06:57 +0000 (11:06 +0900)
commit52bd3e46574baecf06562d4da857ba445981beb9
tree3c61638bec9354e9a5877eb1ce3f2cbbd70624af
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
gitweb: correctly store previous rev in javascript-actions mode

Without this change, the setting

 $feature{'javascript-actions'}{'default'} = [1];

in gitweb.conf breaks gitweb's blame page: clicking on line numbers
displayed in the second column on the page has no effect.

For comparison, with javascript-actions disabled, clicking on line
numbers loads the previous version of the line.

Addresses https://bugs.debian.org/741883.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Robert Luberda <robert@debian.org>
Acked-by: Jakub Narębski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/static/js/blame_incremental.js