This commit is contained in:
Nunzio Fornitto 2026-07-01 16:35:53 +00:00 committed by GitHub
commit 0bc9be5ec7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,6 +68,16 @@ function grename() {
# (sorted alphabetically by function name) # (sorted alphabetically by function name)
# (order should follow README) # (order should follow README)
# #
function gcbn() {
# Check if we are in a Git repository
command git rev-parse --is-inside-work-tree &>/dev/null || return
local branch
branch="$(git_current_branch)" || return
[[ -n "$branch" ]] || return 1
print -rn -- "$branch" | clipcopy
}
# Similar to `gunwip` but recursive "Unwips" all recent `--wip--` commits not just the last one # Similar to `gunwip` but recursive "Unwips" all recent `--wip--` commits not just the last one
function gunwipall() { function gunwipall() {