mirror of https://github.com/junegunn/fzf
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
560 B
Bash
19 lines
560 B
Bash
#!/usr/bin/env bash
|
|
|
|
if [ -z "$GOPATH" ]; then
|
|
echo '$GOPATH not defined'
|
|
exit 1
|
|
fi
|
|
|
|
reset() (
|
|
cd "$GOPATH/src/$1"
|
|
export GIT_DIR="$(pwd)/.git"
|
|
[ "$(git rev-parse HEAD)" = "$2" ] ||
|
|
(git fetch && git reset --hard "$2")
|
|
)
|
|
|
|
reset github.com/junegunn/go-isatty 66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8
|
|
reset github.com/junegunn/go-runewidth 14207d285c6c197daabb5c9793d63e7af9ab2d50
|
|
reset github.com/junegunn/go-shellwords 02e3cf038dcea8290e44424da473dd12be796a8a
|
|
reset golang.org/x/crypto abc5fa7ad02123a41f02bf1391c9760f7586e608
|