Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Get information from outside of the project #18

Open

Description

@pythonissam

Under the current implementation, .git must be in the project. I suggest that we give git command the visibility of other directories in addition to the current directory.

Activity

  1. jneira commented on Jan 2, 2020

    @jneira

    Oh, afaik there is a mechanism to tell the lib where is the .git directory: putting a file named .git with the contents:

     gitdir: /path/to/custom/.git
    

    see

    splitAt 8 `fmap` readFile dotGit >>= \case
    ("gitdir: ", relDir) -> do
    isRelDir <- doesDirectoryExist relDir
    if isRelDir
    then return relDir
    else oops
    _ -> oops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions