plan9fox/sys/src
Ori Bernstein 5d37407e3c diff: avoid empty hunks when there are no changes
Currently, diff outputs a file header, even if there are
no changes to the file. This is wonky.

It means that the header chunks are ambiguous, since
not all header chunks are followed by '@@ hunk', and
'--- file', '+++ file' lines can be generated from
file content.

This changes the way that we decide to print the file
header, so we only print it when outputting the first
hunk on flushchanges.

Flushchanges is called once per regular file, at the
end of `diffreg`, so we output a hunk header once per
file.
2022-06-04 02:21:19 +00:00
..
9 kernel: be more careful about argc for /dev/drivers writes 2022-05-28 17:23:41 +00:00
ape ape: fix wrong write size for _assert() 2022-03-14 11:16:11 +00:00
boot 9boot: fix isowalk() for directories spanning multiple sectors 2021-09-11 12:26:35 +00:00
cmd diff: avoid empty hunks when there are no changes 2022-06-04 02:21:19 +00:00
games games/gb: minor style fixes 2022-03-18 17:32:11 -07:00
lib9p lib9p: remove Srv.srvfd, make postsrv() and threadpostsrv() return the mountable file descriptor, update documentation 2021-05-01 19:58:58 +02:00
libaml libaml: resolve refs in ObjectType instruction 2021-10-17 19:52:28 +00:00
libauth auth/newns: add chdev command 2022-05-28 02:27:59 +00:00
libauthsrv libauthsrv: open internal file-descriptors with OCEXEC flag 2020-12-07 16:47:06 +01:00
libavl replica: use libavl for avl tree implementation 2017-04-22 14:28:02 -05:00
libbin
libbio bio: add support for custom I/O handler via Biofn 2017-05-04 17:42:12 +00:00
libc tmparse: remove incorrect isalpha definition 2022-05-26 20:23:11 +00:00
libcomplete libcomplete: open internal file-descriptor with OCEXEC flag 2020-12-07 17:18:33 +01:00
libcontrol /sys/src/lib*: clean up 2016-11-17 22:58:16 +01:00
libdisk libdisk: catch null bytes in proto file, fix memory leaks 2018-10-20 20:32:22 +02:00
libdraw libdraw: enter/eenter: fix ^W removing the text on the right side of the tick 2021-02-04 10:57:37 +01:00
libdtracy dtracy: avoid dmachlock() race 2019-03-30 09:17:46 +01:00
libfis libfis: fix inverted CHS bit 2017-06-25 23:23:56 +00:00
libflate libflate: force non-empty huffman table in mkzprecode() for deflate 2017-12-09 18:20:29 +01:00
libframe /sys/src/lib*: clean up 2016-11-17 22:58:16 +01:00
libgeometry qball: remove unused #include <stdio.h> 2020-08-04 16:27:27 +02:00
libhtml libhtml: increase Nestmax to render some convoluted pages (thanks fernan) 2018-09-23 23:35:41 +02:00
libhttpd always zero initialize Tm structure for tm2sec() 2019-12-03 08:22:02 +01:00
libip libip: move optimized 386 assembly version of ptclbsum() from kernel to libip 2019-02-27 18:29:08 +01:00
libjson
liblex
libmach libmach: remove newline 2019-05-09 10:27:17 +02:00
libmemdraw libmemdraw: remove inexistent build targets 2020-04-19 15:30:58 +02:00
libmemlayer libmemdraw/libmemlayer: get rid of drawdebug prints 2017-04-29 21:10:28 +02:00
libmp reduce: use if() to test for exit status of pipeline 2022-01-10 02:01:11 +00:00
libndb libndb: move mkptrname() into libndb to avoid duplication 2021-11-03 19:38:36 +00:00
libplumb libplumb: fix plumbunpackpartial() 2018-05-10 19:46:38 +02:00
libregexp libregexp: fix lexer so it doesnt move past the string when it gets a \ escape 2017-07-31 06:56:22 +02:00
libsat libsat, forp: fix va_list hack on amd64 2018-04-24 12:20:07 +01:00
libscribble /sys/src/lib*: clean up 2016-11-17 22:58:16 +01:00
libsec libsec: fix wrong tls1.0 prf regression 2022-03-27 20:28:41 +00:00
libstdio libstdio: sync bits of vfprintf from APE 2021-02-19 23:04:09 +01:00
libString
libsunrpc libsunrpc: work around arm64 compiler bug in sunStringUnpack() 2021-03-29 17:13:50 +02:00
libthread libthread: fix debug prints, simplify 2021-10-13 17:08:26 +00:00
libttf libttf: fix cmap subtable offset type and rank UCS-4 higher (more codepoints). fixes runes > 0xffff 2020-08-05 14:25:21 +02:00
libventi venti: fix memory layers 2021-07-21 05:06:05 +00:00
mkfile revert 8c228a123fa0c6062570964011854302bbf57242: accidental commit 2021-08-22 17:47:38 +00:00
mkfile.proto /sys/src: add arm64 to installall list 2021-06-21 03:34:47 +00:00