rugged icon indicating copy to clipboard operation
rugged copied to clipboard

git rev-list --all -- filename

Open do11 opened this issue 6 years ago • 1 comments

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).

do11 avatar Apr 12 '18 14:04 do11

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.

do11 avatar Apr 13 '18 11:04 do11