]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
src/bin/diffman-git: Show sections as hunk context
authorAlejandro Colomar <alx@kernel.org>
Mon, 18 Aug 2025 08:34:17 +0000 (10:34 +0200)
committerAlejandro Colomar <alx@kernel.org>
Tue, 19 Aug 2025 11:10:10 +0000 (13:10 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/bin/diffman-git

index 2b7701548af3c756b4797fef172f1c20092af3c2..cabae057454b0175ccc360791dd5b3b11929e5de 100755 (executable)
@@ -55,7 +55,7 @@ esac \
        *)  git show "$new";  ;;
        esac \
        | man /dev/stdin \
-       | diff --label "$old" --label "$new" "${opts[@]}" \
+       | diff -F'^[^ ]' --label "$old" --label "$new" "${opts[@]}" \
                <(git show "$old" | man /dev/stdin) \
                /dev/stdin \
        || true;