updates

simonmichael
Jan 31, 2022, 8:18 PM
GOZGHMBY46MSGVV3RL4OBWA36HNDBF4ZAV6TZF4PX3PPPHMARSSQC

Dependencies

  • [2] CMKT7UIX pijul command line helpers, tested with bash

Change contents

  • replacement in bashrc at line 1
    [2.1][2.2:80]()
    # * pijul command line helpers, tested with bash. To install, run:
    # . bashrc
    [2.1]
    [2.80]
    # * Pijul command line aliases & usage notes, tested with bash.
    # These help me use pijul more efficiently, by reducing typing and
    # aligning with familiar commands from other VCS.
    # If you'd like to try them:
    #
    # $ pijul clone https://nest.pijul.com/simonmichael/pijul-scripts
    # $ . pijul-scripts/bashrc
  • replacement in bashrc at line 12
    [2.97][2.97:116]()
    # ** setup testing
    [2.97]
    [2.116]
    # ** pijul setup/testing
  • edit in bashrc at line 16
    [2.226]
    [2.226]
  • edit in bashrc at line 18
    [2.257]
    [2.257]
    # ** show working copy status
  • replacement in bashrc at line 21
    [2.258][2.258:275]()
    # ** general use
    [2.258]
    [2.275]
    # Show unrecorded changes (except added files).
    # Similar to git diff, darcs whatsnew.
    alias pjd='pj diff'
  • edit in bashrc at line 25
    [2.276]
    [2.276]
    # Summarise unrecorded changes (except added files). Add -u to see untracked files.
    # Similar to git status -s, darcs whatsnew -s.
  • edit in bashrc at line 28
    [2.299]
    [2.299]
    # ** record changes
    # pjrecam 'MSG' - record all pending changes as a new change with the given message.
    # Similar to git commit -am 'MSG', darcs record -am 'MSG'.
    alias pjrecam='pj record -a -m'
  • edit in bashrc at line 35
    [2.300]
    [2.300]
    # pjamenda [HASH] - add all pending changes to the specified or last recorded change.
    # Similar to git commit --amend -a, darcs amend -a.
    alias pjamenda='pj record -a --amend'
    # ** list changes
    # Standard list.
  • edit in bashrc at line 43
    [2.319]
    [2.319]
    # List with full descriptions. (?)
  • edit in bashrc at line 46
    [2.353]
    [2.353]
    # List just the hashes.
  • replacement in bashrc at line 49
    [2.385][2.385:451]()
    pjls() { for H in $(pjlh); do pjchangesummary "$H"; echo; done; }
    [2.385]
    [2.451]
    # List with summary of file changes, like git log --stat, darcs log -s.
    pjls() { for H in $(pjlh); do echo "$H"; pjshowstat "$H"; echo; done; }
  • replacement in bashrc at line 53
    [2.452][2.452:509]()
    pjchangesummary() { pj change "$1" | grep -E '^[0-9]'; }
    [2.452]
    # ** inspect changes
    # pjshow [HASH] - show a change, like git show [HASH], darcs log -v -h HASH.
    alias pjshow='pj change'
    # pjshowstat [HASH] - show a change summary, like git show --stat [HASH], darcs log -v -h HASH.
    # shellcheck disable=SC2086
    pjshowstat() { pj change $1 | grep -E '^(message =|[0-9])'; }