summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-07-11 12:06:34 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-07-31 08:34:01 +0200
commit0c07963a2e76c54cbde14dc2da20450454f0e286 (patch)
tree9935e65ad8884cfa49c5eaafe6a9b3ae148fa28c /pkg/commands
parent092d5dd608e997ea8be0aeda03be166987a0ca7b (diff)
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.
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/git_commands/branch_loader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git_commands/branch_loader.go b/pkg/commands/git_commands/branch_loader.go
index 094354cad..b7e55a910 100644
--- a/pkg/commands/git_commands/branch_loader.go
+++ b/pkg/commands/git_commands/branch_loader.go
@@ -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()