dot

packages and services management
Log | Files | Refs | README

commit 4607eeaa8b116abf5154c84f85b07325dd843e9e
parent 102adf1f68497c61141f74008a9c9299d29fbbc6
Author: Josuah Demangeonā  ā µ <mail@josuah.net>
Date:   Tue, 21 Feb 2017 02:31:36 +0100

gix: escaping html in commits

Diffstat:
Mbin/gix | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/bin/gix b/bin/gix @@ -82,6 +82,8 @@ commit() printf '</pre>\n<hr/>\n<pre>' git show "$1" --format='' | sed ' + s|&|\&amp;|g + s|<|\&lt;|g /^diff/ { s|a/\([^ ]*\)|a/<a href="../files/\1.html">\1</a>| s|b/\([^ ]*\)|b/<a href="../files/\1.html">\1</a>|