updates
Dependencies
- [2]
CMKT7UIXpijul command line helpers, tested with bash
Change contents
- replacement in bashrc at line 1
# * pijul command line helpers, tested with bash. To install, run:# . bashrc# * 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
# ** setup testing# ** pijul setup/testing - edit in bashrc at line 16
- edit in bashrc at line 18
# ** show working copy status - replacement in bashrc at line 21
# ** general use# Show unrecorded changes (except added files).# Similar to git diff, darcs whatsnew.alias pjd='pj diff' - edit in bashrc at line 25
# 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
# ** 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
# 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
# List with full descriptions. (?) - edit in bashrc at line 46
# List just the hashes. - replacement in bashrc at line 49
pjls() { for H in $(pjlh); do pjchangesummary "$H"; echo; done; }# 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
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=SC2086pjshowstat() { pj change $1 | grep -E '^(message =|[0-9])'; }