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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -