change: find change files from repo dir

laumann
May 26, 2023, 1:07 PM
DDLQMNGXZDIAK5ELYO5YYWKYKAZLH7FQ3L2J37MC2FOJEVDH6QDQC

Dependencies

  • [2] 2U7P5SFQ Change struct names "struct foo -> typedef struct Foo"
  • [3] WQSKMNHR change: reformat line
  • [4] Q7TKZCJP Add initial support for reading the offsets from a (fixed) change
  • [5] QYRJIOYP change: separate decoding and printing of hashed struct
  • [6] XTKRT6OQ format the codebase
  • [7] RIWSVVAS change: decompress the 'contents' with zstd_seekable
  • [8] QEFCNNVC change: display offsets for given change file
  • [9] 3FT3XTJM change: support -v/-h flags
  • [10] VKLGQREY change: add base32 decode, initial deconstruction of hashed
  • [11] LKIBESCN change: adjust function signatures
  • [12] HKBM7HZG minor: formatting
  • [*] B3XLVPNC Add ani.c and initial Makefile
  • [*] FB67XX5E add argument parsing setup

Change contents

  • replacement in common.h at line 44
    [2.1741][2.1741:1747]()
    #endif
    [2.1741]
    #define DOTPIJUL ".pijul"
    #ifndef PATH_MAX
    #define PATH_MAX 4096
    #endif
    #endif
  • edit in change.c at line 8
    [3.20]
    [3.1191]
    #include <limits.h>
  • edit in change.c at line 593
    [3.2233][3.113:121]()
    int i;
  • replacement in change.c at line 596
    [3.1429][3.122:132](),[3.2620][3.122:132](),[3.2254][3.122:132](),[3.132][3.2025:2126]()
    char *h;
    char chfile[78] =
    ".pijul/changes/AH/IXA5ZESN6QJXV2LKRSC4H5ZRFMJFHFPY2RQRARTH3XJLLCMCGQC.change";
    [3.1429]
    [2.3286]
    char *h, *p;
    char chfile[PATH_MAX] = {0};
  • edit in change.c at line 600
    [3.2255]
    [3.232]
    /* FIXME - make this a lot nicer... */
    /* assert strlen(repodir) < PATH_MAX - strlen(".pijul/changes/XX/YYYYYYYYY...YYY.change") */
    p = stpncpy(chfile, repodir, PATH_MAX);
    *p++ = '/';
    p = stpncpy(p, DOTPIJUL, 6);
    *p++ = '/';
    p = stpncpy(p, "changes/", 8);
  • replacement in change.c at line 609
    [3.251][3.251:291]()
    chfile[15] = *h++;
    chfile[16] = *h++;
    [3.251]
    [3.291]
    *p++ = *h++;
    *p++ = *h++;
    *p++ = '/';
  • replacement in change.c at line 613
    [3.292][3.292:339]()
    for (i = 18; i < 69; i++)
    chfile[i] = *h++;
    [3.292]
    [3.339]
    p = stpncpy(p, h, 51);
    stpncpy(p, ".change", 7);
  • edit in ani.c at line 6
    [2.4530]
    [15.1130]
    #include "scaffold.h"