Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ export function doesFileExist(path: string) {
/* General Methods */

/**
* Abbreviate a commit hash to the first eight characters.
* Abbreviate a commit hash to the first seven characters.
* @param commitHash The full commit hash.
* @returns The abbreviated commit hash.
*/
export function abbrevCommit(commitHash: string) {
return commitHash.substring(0, 8);
return commitHash.substring(0, 7);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion web/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3814,7 +3814,7 @@ function haveFilesChanged(oldFiles: ReadonlyArray<GG.GitFileChange> | null, newF
}

function abbrevCommit(commitHash: string) {
return commitHash.substring(0, 8);
return commitHash.substring(0, 7);
}

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