mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
12 lines
272 B
Bash
Executable file
12 lines
272 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
set -o pipefail
|
|
|
|
if ! command -v pastebinit >/dev/null 2>&1; 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
|