Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Implement git log --all #1044

Closed
wants to merge 1 commit into from
Closed

Implement git log --all #1044

wants to merge 1 commit into from

Conversation

kuba--
Copy link
Contributor

@kuba-- kuba-- commented Jan 3, 2019

Signed-off-by: kuba-- kuba@sourced.tech

This PR implements git log --all.
It closes #1024
It's also related to #1023

Please take a look carefully if it can be done in more optimal way.

Signed-off-by: kuba-- <kuba@sourced.tech>
@kuba-- kuba-- requested review from ajnavarro, mcuadros and a team January 3, 2019 21:53
l := list.New()
m := make(map[plumbing.Hash]*list.Element)

commitIter.ForEach(func(c *Commit) error {
Copy link
Contributor Author

@kuba-- kuba-- Jan 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we don't need to populate a list by commitIter which is the first iterator (in other words for --all we may ignore From option and just go through all references)

@kuba-- kuba-- closed this Jan 4, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose git log --all equivalent
1 participant