Sha256: 08c6e84bab3d383e31fd6f6f3ba542288984ed0cdeb6e11fe5b1b2802729bce9
Contents?: true
Size: 648 Bytes
Versions: 6
Compression:
Stored size: 648 Bytes
Contents
module Rugged class Reference def local? !remote? end def time # # we can't just use `target.time` here, because that # corresponds to the time attribute for the commit's # so-called "committer", not for its "author"... # # for regular commits these two time attributes will be # the same, but after rebasing for instance "committer" # will be different from "author", as will their "time" # attributes # # see also: https://git.io/fhNEv # target.author[:time] end def targets?(reference) target == reference.target end end end
Version data entries
6 entries across 6 versions & 1 rubygems