gitlab-org--gitlab-foss/app/helpers/git_helper.rb
Dmitriy Zaporozhets 5f0535ac91 Improve merge request version feature
* Use version numbers instead of sha as more user-friendly
* Make it clear that we compare later version (left) with older one (right)
* Improve wording of version switch panel

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-09-07 10:24:48 +03:00

9 lines
201 B
Ruby

module GitHelper
def strip_gpg_signature(text)
text.gsub(/-----BEGIN PGP SIGNATURE-----(.*)-----END PGP SIGNATURE-----/m, "")
end
def short_sha(text)
Commit.truncate_sha(text)
end
end