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

Fix path function in tree_entry (fix for issue #570) by jfremy · Pull Request #571 · nodegit/nodegit · GitHub

Repository navigation

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

Merged
tbranyen merged 2 commits into
nodegit:masterfrom
jfremy:fix_treeentry_path
May 15, 2015
Merged

tbranyen merged 2 commits into
nodegit:masterfrom
jfremy:fix_treeentry_path

Conversation

jfremy commented May 15, 2015

Copy link
Copy Markdown
Contributor

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
Comment thread lib/tree.js Outdated

Copy link
Copy Markdown
Member

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

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

Copy link
Copy Markdown
Member

Thanks for this, one minor request!

Copy link
Copy Markdown
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 merged commit 51da106 into nodegit:master May 15, 2015
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.

3 participants


Back | FazBrowse Home | New Git URL