list

scripts

Repo containing scripts to be used with dovel, and git hooks that powers our web interface.

curl https://dovel.email/scripts.tar tar

3a07626

Author: brian (git@myr.sh)

Date: Fri Sep 29 02:09:03 2023 -0300

Parent: 277e575

Improved diff style

Diff

diff --git a/update-repo-log b/update-repo-log
index cd38394..94adf0f 100755
--- a/update-repo-log
+++ b/update-repo-log
@@ -37,14 +37,25 @@ createcommitpage() {
# now the diff
cat <<- EOF
</pre>
-		<p>Diff</p>
+		<h3>Diff</h3>
+		<file>
<pre>
-		$(git show --format='' "$1")
-		</pre>
-		</body>
-		</html>
+		<ol>
EOF
}
+
+	git show --format='' "$1" | while read -r l
+	do
+		printf "<li>%s</li>\n" "$(escapehtml "$l")"
+	done
+
+	cat <<- EOF
+	</ol>
+	</pre>
+	</file>
+	</body>
+	</html>
+	EOF
}

echo "creating log.html"