git/list[1] front-page[2] threads[3] people[4] search[5] about
 

(broken ?) output of "git diff --color-word"

From
TFToralf Förster <toralf.foerster@gmx.de>
Date
Nov 6, 2013, 21:02 UTC
Message-ID
<527AAE6C.9000808@gmx.de>
I just commented out few lines, "git diff" is fine :
@@ -144,10 +145,10 @@ StartUML || exit 2
 SHARES=""
 if [[ $VICTIMS -eq 1 ]]; then

-#      SHARES="/tmp"
-#      SHARES="$SHARES /mnt/hostfs"
-#      SHARES="$SHARES /mnt/nfsv2"
-#      SHARES="$SHARES /mnt/nfsv3"
+       SHARES="/tmp"
+       SHARES="$SHARES /mnt/hostfs"
+       SHARES="$SHARES /mnt/nfsv2"
+       SHARES="$SHARES /mnt/nfsv3"
 #      SHARES="$SHARES /mnt/nfsv4"

        echo $SHARES | grep -q hostfs



but "git diff --color-words" places the "#" somehow obscure :


@@ -144,10 +145,10 @@ StartUML || exit 2
SHARES=""
if [[ $VICTIMS -eq 1 ]]; then

#       SHARES="/tmp"#
        SHARES="$SHARES /mnt/hostfs"#
        SHARES="$SHARES /mnt/nfsv2"#
        SHARES="$SHARES /mnt/nfsv3"
#       SHARES="$SHARES /mnt/nfsv4"

        echo $SHARES | grep -q hostfs
-- 
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
Message 1 of 1 in “(broken ?) output of "git diff --color-word"”
  1. Toralf FörsterNov 6, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.