change: decode and print file undel
Dependencies
- [2]
33ZXTRXRchange: decode and print file deletions - [3]
JAGXXSR7change: initial work on decoding hunks - [4]
RIHOSQNYhunk: define hunk types that operate on files - [5]
JVU3TTT5all: switch away from typedefing anonymous structs - [*]
Q7TKZCJPAdd initial support for reading the offsets from a (fixed) change
Change contents
- replacement in hunk.h at line 42
str encoding;str encoding; /* Option<struct encoding> */ - edit in change.c at line 354
);break;case FILE_UNDEL:change_decode_atom(binstat, &bhunk->fileundel.undel);if (bincode_getu8(binstat))change_decode_atom(binstat, &bhunk->fileundel.contents);slen = bincode_getu64(binstat);bhunk->fileundel.path = bincode_getstr(binstat, slen);change_decode_encoding(binstat, &bhunk->fileundel.encoding - edit in change.c at line 723
printf(" %s\n", f->path);break;}case FILE_UNDEL: {struct fileundel *f = &hunk->fileundel;