Adds Git.logBetween(from, to, callback)#9
Conversation
|
Can you squash this? 6 commits seems like a bit much for a ~30 line patch. |
|
I can squash it into a new branch + pr if you'd like, or you can squash when you do the merge whichever works for you :-) |
|
Squashed :-) (sorry for the delay there) |
|
Hi Tim, when you asked Eoin if he could squash the commits, is that the same as compressing the history of changes made? What would the git command for that be? Perhaps, this? |
|
Hey @RaymondCrandall "sqaush" can mean a few different things. In this case, I did an interactive rebase ( There is also the
|
I needed to get the log between two refspecs, and that's what
Git.logBetweenallows.Given a
fromrefspec, and atorefspec it returns an array of commit hashes, ordered by commit time.I lifted the parsing of an individual line of the summary log from
logFile, but only for use inlogBetween, since that would technically change the resulting hash if used inlogFile.If you're happy with this as a start, I can finish that refactoring for
logFileto useparseSummaryLogEntry, and add some tests forlogBetween