10000 status: preloadWithStatus should return the full path, not just file name by davidrios · Pull Request #1576 · go-git/go-git · GitHub
[go: up one dir, main page]

Skip to content

status: preloadWithStatus should return the full path, not just file name #1576

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

Open
wants to merge 1 commit into
base: previous-main
Choose a base branch
from

Conversation

davidrios
Copy link
@davidrios davidrios commented Jun 15, 2025

Fix #1384

Copy link
Member
@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

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

@davidrios please add some tests to confirm the expected behaviour.

status.go Outdated
continue
}
fs := status.File(node.Name())
fs := status.File(node.Path)
Copy link
Member

Choose a reason for hiding this comment

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

If the only thing we need is the full node path, I believe we could do that with:

Suggested change
fs := status.File(node.Path)
fs := status.File(node.String())

In that case, we could drop the rest of the changes.

Copy link
Author

Choose a reason for hiding this comment

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

Good one

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.

worktree status with preload option is broken
2 participants
0