I took a combination of this answer and this answer to get a listings
environment closer to the git diff visualizations, with coloured line backgrounds rather than coloured text.

\documentclass{article}
\usepackage{xcolor}
\usepackage{listings}
\newcommand{\lstbg}[3][0pt]{{\fboxsep#1\colorbox{#2}{\strut #3}}}
\lstdefinelanguage{diff}{
basicstyle=\ttfamily\small,
morecomment=[f][\lstbg{red!20}]-,
morecomment=[f][\lstbg{green!20}]+,
morecomment=[f][\textit]{@@},
%morecomment=[f][\textit]{---},
%morecomment=[f][\textit]{+++},
}
\begin{document}
\begin{lstlisting}[language=diff]
@@ -85,8 +85,8 @@
\newcommand{\doctitleifsub}[2]{%
\thispagestyle{empty}
\begin{center}
- \sffamily This document is part of the documentation of \openlilylib%
- \footnote{\url{https://github.com/openlilylib/openLilyLib}},\
+ \sffamily This document is part of \textbf{\openlilylib}%
+ \footnote{\url{http://www.openlilylib.org}},\
a collection of resources for the LilyPond notation software%
\footnote{\url{http://www.lilypond.org}}\
and the \LaTeX{} typesetting system.
\end{lstlisting}
\end{document}
minted
, potentially with a custom style for Pygments?