ruby - get all commit of a file/path with rugged -
i list of commits file/path don't know how it.
for example want commit of file "test", oid of each commit , oid, blob of revision file.
is possible ?
thanks !
we can commits way :
tab = [] walker = rugged::walker.new(repo) walker.sorting(rugged::sort_date) walker.push(repo.head.target) walker.each |commit| if commit.diff(paths: ["path_of_file"]).size > 0 tab.push(commit) end end
Comments
Post a Comment