Sha256: 10861034be22d1582ebb67846a4f761f939f8a7d344eaca391687f746299e791
Contents?: true
Size: 434 Bytes
Versions: 6
Compression:
Stored size: 434 Bytes
Contents
module RJGit class Note attr_reader :jnote, :message, :annotates DEFAULT_REF = "refs/notes/commits" def initialize(repository, note) @jrepo = RJGit.repository_type(repository) @jnote = RJGit.note_type(note) @message = @jrepo.open(@jnote.getData()).get_bytes.to_a.pack('c*').force_encoding('UTF-8') @annotates = @jnote.to_s[5..44] end def to_s @message end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
rjgit-7.0.0.0 | lib/note.rb |
rjgit-6.8.0.0 | lib/note.rb |
rjgit-6.7.0.0 | lib/note.rb |
rjgit-6.6.0.0 | lib/note.rb |
rjgit-6.5.0.0 | lib/note.rb |
rjgit-6.4.0.1 | lib/note.rb |