gitrev icon indicating copy to clipboard operation
gitrev copied to clipboard

Get information from outside of the project

Open pythonissam opened this issue 7 years ago • 1 comments

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.

pythonissam avatar Apr 07 '18 09:04 pythonissam

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 https://github.com/acfoltzer/gitrev/blob/450a7abf444260e95791649489705e54650c0232/src/Development/GitRev.hs#L112-L118

jneira avatar Jan 02 '20 13:01 jneira