Skip to content

Commit fc0bc05

Browse files
committed
Change abbreviated commit hash length to 7 chars
1 parent d7f43f4 commit fc0bc05

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ export function doesFileExist(path: string) {
120120
/* General Methods */
121121

122122
/**
123-
* Abbreviate a commit hash to the first eight characters.
123+
* Abbreviate a commit hash to the first seven characters.
124124
* @param commitHash The full commit hash.
125125
* @returns The abbreviated commit hash.
126126
*/
127127
export function abbrevCommit(commitHash: string) {
128-
return commitHash.substring(0, 8);
128+
return commitHash.substring(0, 7);
129129
}
130130

131131
/**

web/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3814,7 +3814,7 @@ function haveFilesChanged(oldFiles: ReadonlyArray<GG.GitFileChange> | null, newF
38143814
}
38153815

38163816
function abbrevCommit(commitHash: string) {
3817-
return commitHash.substring(0, 8);
3817+
return commitHash.substring(0, 7);
38183818
}
38193819

38203820
function getRepoDropdownOptions(repos: Readonly<GG.GitRepoSet>) {

0 commit comments

Comments
 (0)