The Wayback Machine - https://web.archive.org/web/20200916181829/https://github.com/nodegit/nodegit/pull/1110
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getEntry for commits retrieved by fastHistoryWalk #1110

Open
wants to merge 4 commits into
base: master
from

Conversation

@implausible
Copy link
Member

implausible commented Aug 12, 2016

Addresses: #1045

var repo = this.repo;
return _fileHistoryWalk.call(this, filePath, maxCount)
.then(function(historyEntries) {
return historyEntries.map(function(historyEntry) {

This comment has been minimized.

@maxkorp

maxkorp Aug 12, 2016

Collaborator

Why map this? it's a referential assignment, just do a foreach?

This comment has been minimized.

@johnhaley81

johnhaley81 Jan 27, 2017

Collaborator

Best IMO would be: .then(fp.map(fp.set(['commit', 'repo'], repo)))

Where const fp = require('lodash/fp').

The better than best would be const map = require('lodash/fp/map'); const set = require('lodash/fp/set');

This comment has been minimized.

@implausible

implausible Jan 30, 2017

Author Member

@johnhaley81 that's a great idea :). It is done.

@maxkorp
Copy link
Collaborator

maxkorp commented Sep 15, 2016

Can has rebase?

@implausible implausible force-pushed the repo-prop-commit-history-walk branch from 5485688 to 07a7656 Jan 30, 2017
@jaywcjlove
Copy link

jaywcjlove commented Sep 2, 2018

@implausible Hope to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.