Hi - Is there a way to iterate over all commits in a given repository?
b
Barak Amar
07/27/2022, 10:26 AM
Commits log should do it
Barak Amar
07/27/2022, 10:34 AM
Or list commits from ref manager 🙂
n
Niro
07/27/2022, 10:34 AM
Thanks! ListCommits provides what I need without a branch context
a
Ariel Shaqed (Scolnicov)
07/27/2022, 11:03 AM
I think an advantage of iterating over the log is that you get commits in some logical order. Doesn't ListCommits provide them in lexicographical order of digests, which is essentially a random order? You don't need to depend on the order, right?