Hacker News new | past | comments | ask | show | jobs | submit login

Git has a mechanism for getting the root repo directory - `git rev-parse --show-toplevel`



True. I guess I wanted to avoid shelling out, but it probably wouldn't hurt.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: