Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions bin/git-gtr
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ main() {
help|--help|-h)
cmd_help "$@"
;;
cd)
local _shell_name
_shell_name="$(basename "${SHELL:-bash}")"
log_error "'cd' requires shell integration (subprocesses cannot change your shell's directory)"
log_info "Set up with: eval \"\$(git gtr init $_shell_name)\""
log_info "Then use: gtr cd [<branch>]"
exit 1
;;
*)
log_error "Unknown command: $cmd"
echo "Use 'git gtr help' for available commands"
Expand Down