rugged
rugged copied to clipboard
git rev-list --all -- filename
How can I walk rev-list limited by the file name, similar to git rev-list --all -- README
? If it's not possible, how to implement in most optimal way?
Also, how to walk --all
, I only able to walk limited by HEAD:
linux$ git rev-list --all | wc -l
856145
linux$ git rev-list HEAD | wc -l
640952
pry(main)> Walker.walk(repo, show: 'HEAD').to_a.size
=> 640952
(repo is linux kernel).
Also, If I do git rev-list HEAD -- README
I see lines with revs as they appear. In rugged I wait while library parses whole rev list and only after that each
interator start to work.