The Wayback Machine - https://web.archive.org/web/20260306153247/https://github.com/github/semantic/issues/356
Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

readProjectFromPaths has weird semantics #356

@patrickt

Description

@patrickt

This function, as @robrix pointed out, is a little weird: its second parameter can be a file path rather than a directory, in which case the resulting project’s root is the parent directory of the provided file—and all files, not just the provided file, will be slurped into the resulting project. This is unintuitive behavior that we preserved because we were afraid to change the CLI interface, and we should just kill the CLI vagaries that allow for this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceIncremental improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions