Add change 29 to instructions

This commit is contained in:
David Doblas Jiménez 2024-05-24 14:44:43 +02:00
parent b854b4fa18
commit 7896b80c42

9
how_to/Change_29.md Normal file
View File

@ -0,0 +1,9 @@
- log: Use `iter_commits_and_parents`
Refactoring ahead! Since we have `iter_commits_and_parents` from `k`, let's also
use this function in `log`. We'll need to adjust it a bit to use
`collections.deque` instead of a set so that the order of commits is deterministic.
This generalization might seem unneeded at this point, but it will be useful
later. (Note for the advanced folks: When we implement merge commits that have
multiple parents, this generic way to iterate will come in handy.)