-
Notifications
You must be signed in to change notification settings - Fork 534
object.WalkCommitHistory should walk parents in reverse order #223
Comments
I've implemented it here, for example: |
@mvdan Thank you for taking the time to open the issue.
|
Assuming the API is frozen and that you'd prefer a separate func, I propose my implementation above with a name like |
Also, cheers for doing nice Go work from Spain :) I moved away from Barcelona recently. |
@mvdan The API for v4 is not frozen yet, it will be frozen only once we release v4.0.0. @mcuadros Any thoughts about the API for this? WRT working in Spain, note that we're hiring ;) |
Ah, sounds exciting, but not planning to move to Madrid anytime soon :)
This is surprising. The docs suggest using v4, so I was assuming it was already stable. |
Status of this? Should I open a pull request? |
The docs suggest use v4, because the v3 is very limited in terms of functionality. I could thing in the API, but of course a pull request can be open and we can discuss about it. |
Sorry for the confusion, I indeed meant the patch, not the version in the docs. I'll open a pull request. |
fix error shadowing in addFile preprocessor
Uh oh!
There was an error while loading. Please reload this page.
When you do
git log
and there has been a merge, you see something like:But the way
WalkCommitHistory
is implemented, the first parent is walked first. This means that the history is traversed as:I see no advantage in doing it this way. Using it the other way is more intuitive, and should also use less memory as merged histories are often much shorter (e.g. PRs) than the main ones.
The text was updated successfully, but these errors were encountered: