This commit is contained in:
Waylon Walker 2022-03-31 20:20:07 -05:00
commit 38355d2442
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
9083 changed files with 1225834 additions and 0 deletions

32
.venv/bin/pyflyby-diff Executable file
View file

@ -0,0 +1,32 @@
#!/bin/bash -e
# License for THIS FILE ONLY: CC0 Public Domain Dedication
# http://creativecommons.org/publicdomain/zero/1.0/
# Get the directory containing to the symlink target of the script.
if script=$(readlink -e "$0" 2>/dev/null) && [[ "$script" -ef "$0" ]]; then
scriptdir=$(dirname "$script")
elif script=$(realpath "$0" 2>/dev/null) && [[ "$script" -ef "$0" ]]; then
scriptdir=$(dirname "$script")
elif script=$(greadlink -e "$0" 2>/dev/null) && [[ "$script" -ef "$0" ]]; then
scriptdir=$(dirname "$script")
else
scriptdir=$(
d=$(dirname "$0")
b=$(basename "$0")
cd "$d"
if l=$(readlink "$b"); then
ld=$(dirname "$l")
cd "$ld"
fi
pwd
)
fi
PATH="$scriptdir:$PATH"
if [[ -t 1 ]] && type -p diff-colorize >/dev/null; then
diff -u "$@" | diff-colorize
else
diff -u "$@"
fi