SVG IC Pinout

https://twitter.com/john_newall/status/1365519591632343040

BeyondCompare Merge Scripts

# james@archx1c6g ➜  ~ cat ~/.scripts/diff2ref.sh
# COMPARE TWO REFERENCES (Branch, Tag, Commit), both in Read-Only Mode
#   Use (from the git repo root):
#     <path to script>/diffref.sh master 123abcd

set -euxo pipefail

fixed_base=$(echo $1 | sed "s#/#_#g")
fixed_dest=$(echo $2 | sed "s#/#_#g")

# Build destination folder
DATEHASH=`echo "obase=16; $(date +%s)" | bc`
DESTFOLDER1=/tmp/diffref-$DATEHASH-$fixed_base
DESTFOLDER2=/tmp/diffref-$DATEHASH-$fixed_dest
mkdir $DESTFOLDER1
mkdir $DESTFOLDER2

# Export Reference
git archive $1 | tar -xC $DESTFOLDER1
git archive $2 | tar -xC $DESTFOLDER2

# Fire Diff
bcompare -ro1 -ro2 $DESTFOLDER1 $DESTFOLDER2 -title1=$1 -title2=$2

# Clean Up
rm -rf $DESTFOLDER1
rm -rf $DESTFOLDER2
# james@archx1c6g ➜  ~ cat ~/.scripts/diffref.sh
# COMPARE A REFERENCE AGAINST WORKING DIRECTORY
#   Use (from the git repo root):
#     <path to script>/diffref.sh master

set -euxo pipefail

fixed_base=$(echo $1 | sed "s#/#_#g")

# Build destination temp folder
DATEHASH=`echo "obase=16; $(date +%s)" | bc`
DESTFOLDER=/tmp/diffref-$DATEHASH-$fixed_base
mkdir $DESTFOLDER

# Export Reference
git archive $1 | tar -xC $DESTFOLDER

# Fire Diff
bcompare -ro1 $DESTFOLDER $(pwd) -title1=$1 -title2="Working Directory"

# Clean Up
rm -rf $DESTFOLDER
# Relevant .gitconfig sections
[alias]
    lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cI) %C(bold blue)<%an>%Creset' --abbrev-commit --
    e  = !sh diffref.sh
    e2 = !sh diff2ref.sh
[diff]
    tool = bc3
[difftool "bc3"]
    trustExitCode = true
[merge]
    tool = bc3
[mergetool "bc3"]
    trustExitCode = true

TODO: I should add this to my setup:

https://stackoverflow.com/questions/1220309/git-difftool-open-all-diff-files-immediately-not-in-serial