Module: Amp::RevlogSupport::Node

Constant Summary collapse

NULL_ID =

the null node ID - just 20 null bytes

"\0" * 20
NULL_REV =

-1 is the null revision (the last one in the index)

-1

Instance Method Summary collapse

Instance Method Details

#short(node) ⇒ String

Returns the node in a short hexadecimal format - only 6 bytes => 12 hex bytes

Returns:

  • (String)

    the node, in hex, and chopped a bit



13
14
15
# File 'lib/amp/revlogs/node.rb', line 13

def short(node)
  node.short_hex
end