Thread (2 messages) flat view 2 messages, 2 authors, 2016-08-04
DORMANTno replies

[PATCH] diff-highlight: Add comment for our assumption about --graph output.

From: Brian Henderson <hidden>
Date: 2016-08-04 15:04:47
Subsystem: the rest · Maintainer: Linus Torvalds

---
 contrib/diff-highlight/diff-highlight | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/contrib/diff-highlight/diff-highlight b/contrib/diff-highlight/diff-highlight
index ec31356..9364423 100755
--- a/contrib/diff-highlight/diff-highlight
+++ b/contrib/diff-highlight/diff-highlight
@@ -20,6 +20,9 @@ my @NEW_HIGHLIGHT = (
 my $RESET = "\x1b[m";
 my $COLOR = qr/\x1b\[[0-9;]*m/;
 my $BORING = qr/$COLOR|\s/;
+
+# The patch portion of git log -p --graph should only ever have preceding | and
+# not / or \ as merge history only shows up on the commit line.
 my $GRAPH = qr/$COLOR?\|$COLOR?\s+/;
 
 my @removed;
-- 
2.9.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help