Store full sha in branch model

The model will be used for logic, so the full hash is needed there; a shortened
hash of 8 characters might be too short to be unique in very large repos. If
some view wants to display a shortened hash, it should truncate it at
presentation time.
This commit is contained in:
Stefan Haller 2023-07-11 12:06:34 +02:00
parent 092d5dd608
commit 0c07963a2e
2 changed files with 2 additions and 2 deletions

View file

@ -171,7 +171,7 @@ var branchFields = []string{
"upstream:short",
"upstream:track",
"subject",
fmt.Sprintf("objectname:short=%d", utils.COMMIT_HASH_SHORT_SIZE),
"objectname",
}
// Obtain branch information from parsed line output of getRawBranches()