Refuse to rebuild until repository has no unrecorded changes

finchie
Mar 6, 2024, 8:08 AM
BAT5B53OT72O5HVR5LJOOUERGYHZCUE7XNQ4XJ775YND6W5F35LAC

Dependencies

  • [2] HINOSPQO Add simple nushell update script

Change contents

  • replacement in update.nu at line 24
    [2.814][2.814:874]()
    # Make sure to record changes, even if trivial
    pijul record
    [2.814]
    [2.874]
    # Force version control to be clean before continuing
    while (pijul diff -us | str length) > 0 {
    echo $"(ansi yellow_bold)WARNING(ansi yellow): repository has unrecorded changes:(ansi reset)";
    # Drop into terminal to fix
    nu --interactive --execute $"cd ($parent_dir); pijul diff -us";
    }