mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
* Format comparisons and functions to be consistent * Add `checkstyle.py` script and add check to CI * Fix Ruff lints
12 lines
268 B
Bash
Executable file
12 lines
268 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
set -o pipefail
|
|
|
|
if ! command -v pastebinit &>/dev/null; then
|
|
echo >&2 "To run 'git paste', you need to install pastebinit in your system"
|
|
exit 1
|
|
fi
|
|
|
|
test $# -ne 0 || set -- '@{u}'
|
|
git format-patch --stdout "$@" | pastebinit -f diff
|