FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Implement file history walk in revwalk by implausible · Pull Request #889 · nodegit/nodegit · GitHub

Repository navigation

Implement file history walk in revwalk - #889

Merged
johnhaley81 merged 6 commits into
masterfrom
file-history
Feb 4, 2016
Merged

johnhaley81 merged 6 commits into
masterfrom
file-history

Conversation

Copy link
Copy Markdown
Member

Implementing file history walk for revwalk. You pass it a sha, it then traverses until it either finds the 'added' entry for the file OR it hits the max number of commits to search for history.

Copy link
Copy Markdown
Collaborator

implausible changed the title [WIP] Implement file history walk in revwalk Implement file history walk in revwalk Feb 3, 2016

Copy link
Copy Markdown
Member Author

@tbranyen @johnhaley81 once we get this to pass without some random test timing out, this is ready to go by my account. If you guys wanted to give this the once over before I merge in, that would be greatly appreciated.

Notes of interest: The fileHistoryWalk will do a rename detection if it discovers a file was added in the history and will return the old file name and the renamed status along with the commit. This helps history users to not only follow the filepath's history, but also see how the content if the file has changed / branched.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I don't see these getting freed anywhere. Is this memory cleaned up?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I can't find whether or not we're supposed to clean it up or not. It would be super helpful if the docs gave me some insight

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

If you know explicitly that we're supposed to clean those up, I'll free the. I've been mulling it over myself, because the docs are not clear!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

oh cool! I guess since it's explained there they don't have to explain it in the function documentation for tree to tree.

Copy link
Copy Markdown
Collaborator

Other then the potential memory leak above, could you get some comment blocks into lib/revwalk/js for docs?

Only find similar if there is an added entry
Free diffs when we are done with them.
}
}

git_diff_free(diffs);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Freeing diffs down here now.

Copy link
Copy Markdown
Member Author

@johnhaley81 @tbranyen what is going on with this test? https://travis-ci.org/nodegit/nodegit/jobs/106996362

johnhaley81 added a commit that referenced this pull request Feb 4, 2016
Implement file history walk in revwalk
johnhaley81 merged commit 2fca86e into master Feb 4, 2016
johnhaley81 deleted the file-history branch February 4, 2016 20:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL