ani: rename NEED_WORK_TREE -> NEED_REPO_DIR

laumann
Feb 9, 2024, 5:07 AM
CS3OZD2JHXAGGCFIJRPCJE3EF26OI6KV3XY52MELNBUVBVDVFFMQC

Dependencies

  • [2] ZYBYX2TB Add new pristine subcommand
  • [3] B3XLVPNC Add ani.c and initial Makefile
  • [4] FB67XX5E add argument parsing setup
  • [5] 2U7P5SFQ Change struct names "struct foo -> typedef struct Foo"
  • [6] JVU3TTT5 all: switch away from typedefing anonymous structs
  • [7] ZTDGWUGP add repository structure
  • [8] ZPNA2D42 ani: add functions to locate .pijul

Change contents

  • replacement in ani.c at line 12
    [3.51][3.1750:1782]()
    #define NEED_WORK_TREE (1 << 0)
    [3.51]
    [3.1782]
    #define NEED_REPO_DIR (1 << 0)
  • replacement in ani.c at line 31
    [3.1878][3.1878:1921](),[3.1921][2.3290:3337]()
    { "change", cmd_change, NEED_WORK_TREE },
    { "pristine", cmd_pristine, NEED_WORK_TREE },
    [3.1878]
    [3.1297]
    { "change", cmd_change, NEED_REPO_DIR },
    { "pristine", cmd_pristine, NEED_REPO_DIR },
  • replacement in ani.c at line 78
    [3.1949][3.1949:1989]()
    if (command->flags & NEED_WORK_TREE) {
    [3.1949]
    [3.1989]
    if (command->flags & NEED_REPO_DIR) {