Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
DougN7
15 days ago
|
parent
|
context
|
favorite
| on:
Show HN: Witr – Explain why a process is running o...
What does this means for context: “Git repository name and branch” Does this mean it detects if something is running from within a git repository folder? Couldn’t find the code that checked this.
jackwilsdon
15 days ago
[–]
It appears to walk up from the process's working directory searching for a .git directory:
https://github.com/pranshuparmar/witr/blob/1e47bdb8fde179b17...
pranshuparmar
15 days ago
|
parent
[–]
Yes, that's correct! It walks up from the process’s working directory looking for a `.git` folder to detect the repo and branch. Thanks.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: