Simplify sha1 functions #111
No reviewers
Labels
No Label
in progress
kind/bug
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/security
kind/testing
kind/translation
kind/ui
lgtm/done
lgtm/need 1
lgtm/need 2
priority/critical
priority/low
priority/maybe
priority/medium
refactor
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
status/blocked
status/needs-feedback
status/wip
No Milestone
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/git#111
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "unknown repository"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Author: @ethantkoenig
Some simplifications to prevent wheel re-invention:
hex.EncodeString(..)
instead of manually hex encoding012..ef
each call.copy(..)
instead of manually copying bytescopy
has architecture-specialized implementationsbytes.Equal(..)
instead of manually comparing bytesbytes.Equal
has architecture-specialized implementationsFor the record, converting an array to a slice (
arr[:]
) does not copy the array.Author: @lunny
LGTM