Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix path function in tree_entry (fix for issue #570)#571

Merged
tbranyen merged 2 commits intonodegit:masternodegit/nodegit:masterfrom
jfremy:fix_treeentry_pathjfremy/nodegit:fix_treeentry_pathCopy head branch name to clipboard
May 15, 2015
Merged

Fix path function in tree_entry (fix for issue #570)#571
tbranyen merged 2 commits intonodegit:masternodegit/nodegit:masterfrom
jfremy:fix_treeentry_pathjfremy/nodegit:fix_treeentry_pathCopy head branch name to clipboard

Conversation

@jfremy
Copy link
Contributor

@jfremy jfremy commented May 15, 2015

Fix for issue #570
If the entry path goes beyond the immediate children (a file in a subdir for instance) then path would return a path missing the subdir name

As an example:
getEntry("test/rawcommit.js") => entry path will be returned as "rawcommit.js"

If the entry path goes beyond the immediate children (a file in a subdir
for instance) then path would return a path missing the subdir name
lib/tree.js Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Can we rename this path and change the variable later on to filePath?

@tbranyen
Copy link
Member

Thanks for this, one minor request!

@tbranyen
Copy link
Member

Looks good, tyvm!

tbranyen added a commit that referenced this pull request May 15, 2015
Fix path function in tree_entry (fix for issue #570)
@tbranyen tbranyen merged commit 51da106 into nodegit:master May 15, 2015
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.