logoalt Hacker News

DougN7yesterday at 10:26 PM1 replyview on HN

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.


Replies

jackwilsdonyesterday at 10:44 PM

It appears to walk up from the process's working directory searching for a .git directory: https://github.com/pranshuparmar/witr/blob/1e47bdb8fde179b17...

show 1 reply