Git: Simplify git_search git_sign names.

This commit is contained in:
Dmitry Voronin 2024-10-23 19:22:36 +03:00
parent d3e936f844
commit 81d6530047
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -225,12 +225,12 @@
} }
# Search for string in whole git history. # Search for string in whole git history.
# Usage: git_search <STRING> # Usage: gsearch <STRING>
function git_search() { function gsearch() {
local target="''${*}" local target="''${*}"
if [[ "''${target}" = "" ]]; then if [[ "''${target}" = "" ]]; then
help git_search help gsearch
return 2 return 2
fi fi
@ -238,8 +238,8 @@
} }
# Sign the old commits. 0 to resign from root. # Sign the old commits. 0 to resign from root.
# Usage: git_sign [COMMIT_COUNT] # Usage: gsign [COMMIT_COUNT]
function git_sign() { function gsign() {
local base="''${1}" local base="''${1}"
# Resign last commit by default. # Resign last commit by default.