Re: Git-repo-root relative path

2020-11-22 Thread Per Nordlöw via Digitalmars-d-learn
On Wednesday, 18 November 2020 at 23:43:15 UTC, Petar Kirov [ZombineDev] wrote: https://gist.github.com/PetarKirov/b4c8b64e7fc9bb7391901bcb541ddf3a Thanks a lot!

Re: Git-repo-root relative path

2020-11-18 Thread Petar via Digitalmars-d-learn
On Monday, 16 November 2020 at 10:21:27 UTC, Per Nordlöw wrote: I need a function that gets the relative path of a file in a Git-repo and preferrably also its status. I'm not sure I understand the question. I have written two programs, hopefully one of them does what you want :D Either via a

Re: Git-repo-root relative path

2020-11-16 Thread Per Nordlöw via Digitalmars-d-learn
On Monday, 16 November 2020 at 10:21:27 UTC, Per Nordlöw wrote: Which DUB packages do you prefer? https://code.dlang.org/packages/dlibgit seems good. But that requires `libgit` to be installed. It would be nice to have a fallback to calling `git`.

Git-repo-root relative path

2020-11-16 Thread Per Nordlöw via Digitalmars-d-learn
I need a function that gets the relative path of a file in a Git-repo and preferrably also its status. Either via an external call to `git` or optionally via `libgit` (if available). Which DUB packages do you prefer?