gitweb: Create links leading to 'blame_incremental' using JavaScript
[gitweb.git] / git-instaweb.sh
index 5f4419b69b58769e8fee7a60109520a095a831c5..6f381c88da6e9102801c3fe42c5aefcf79c47c6b 100755 (executable)
@@ -331,8 +331,15 @@ gitweb_css () {
 EOFGITWEB
 }
 
+gitweb_js () {
+       cat > "$1" <<\EOFGITWEB
+@@GITWEB_JS@@
+EOFGITWEB
+}
+
 gitweb_cgi "$GIT_DIR/gitweb/gitweb.cgi"
 gitweb_css "$GIT_DIR/gitweb/gitweb.css"
+gitweb_js  "$GIT_DIR/gitweb/gitweb.js"
 
 case "$httpd" in
 *lighttpd*)