refactor(git): move gbcopy to Functions section, update git-dir check and sync README

This commit is contained in:
NunzioFornitto 2026-07-29 17:49:17 +02:00
commit 854caf0228

View file

@ -51,7 +51,7 @@ function git_main_branch() {
function gbcopy() { function gbcopy() {
# Check if we are in a Git repository # Check if we are in a Git repository
command git rev-parse --is-inside-work-tree &>/dev/null || return command git rev-parse --git-dir &>/dev/null || return
local branch local branch
branch="$(command git symbolic-ref --short -q HEAD)" || return branch="$(command git symbolic-ref --short -q HEAD)" || return