contrib/pijul-status: handle replacements (R)

laumann
Sep 27, 2022, 10:08 AM
5YTX4YURTNMDR6W725M6XZUEKYC7PCBUJAITEFT7KQKZ6RGJDYGQC

Dependencies

  • [2] 4DUOW3T3 contrib: add pijul-status script

Change contents

  • replacement in contrib/pijul-status at line 1
    [2.58][2.59:71]()
    #!/bin/bash
    [2.58]
    [2.71]
    #!/usr/bin/env bash
  • replacement in contrib/pijul-status at line 4
    [2.90][2.90:662]()
    # On branch master
    # Your branch is up to date with 'origin/master'.
    #
    # Changes not staged for commit:
    # (use "git add <file>..." to update what will be committed)
    # (use "git restore <file>..." to discard changes in working directory)
    # modified: change.c
    #
    # Untracked files:
    # (use "git add <file>..." to include in what will be committed)
    # .gitignore
    # PIJUL
    # PLAN
    # ani
    # atom.h
    # base32
    # changeid.h
    # dev.log
    # graph.png
    # hunk.h
    # meson.build
    # reccom.sh
    # vertex.h
    #
    # no changes added to commit (use "git add" and/or "git commit -a")
    [2.90]
    [2.662]
    # Give an overview of the current state, including:
    #
    # * Current channel
    # * State of tracked files with changes
    # * Untracked files
  • replacement in contrib/pijul-status at line 11
    [2.683][2.683:721]()
    local c=$(pijul channel |grep '^\*')
    [2.683]
    [2.721]
    local c=$(pijul channel | grep '^\*')
  • edit in contrib/pijul-status at line 22
    [2.894]
    [2.894]
    changes[ci++] = "modified" substr($0, 2)
    }
    /^R .*/ {