Skip to content

Commit

Permalink
Show first seven char of commit hash
Browse files Browse the repository at this point in the history
This is to follow the same convention of using commit hash so that in
one glance we can detect if we are the desired commit or not.
  • Loading branch information
ahangarha committed Nov 19, 2023
1 parent 764a299 commit 108f011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/pages_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ def git_commit_sha

def git_commit_sha_short
full_sha = git_commit_sha
full_sha[-7..]
full_sha[...7]
end
end

0 comments on commit 108f011

Please sign in to comment.