Method: Commit#signature

Defined in:
app/models/commit.rb

#signatureObject



387
388
389
390
391
392
393
394
395
396
397
398
# File 'app/models/commit.rb', line 387

def signature
  strong_memoize(:signature) do
    case signature_type
    when :PGP
      gpg_commit.signature
    when :X509
      Gitlab::X509::Commit.new(self).signature
    when :SSH
      Gitlab::Ssh::Commit.new(self).signature
    end
  end
end