Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (41m)  netbsd-10 (4d)  netbsd-9 (4d)  netbsd-8 (9d) 

2024-05-20 20:18:12 UTC Now

2013-01-15 08:26:16 UTC MAIN commitmail json YAML

Implement the -n (nowrap) argument to wdiff(1).  With the -n argument
specified, and when a change spans two lines, the end of region
character sequence is displayed before the new line character, and the
start of region character sequence after it.

Add a test which implements change bars on the left for any changed
text:

% netwdiff -1n f1 f2 | sed -e 's/^/  /;/{+/s/^ /|/;s/{+//g;s/+}//g'

  ...
  static int
| difffile(const char *filename1, const char *filename2)
  {
  ...

(agc)