6 ms·
It appears to walk up from the process's working directory searching for a .git directory: https://github.com/pranshuparmar/witr/blob/1e47bdb8fde179b178aa2f81bf
by jackwilsdon 9mo ago
It appears to walk up from the process's working directory searching for a .git directory: https://github.com/pranshuparmar/witr/blob/1e47bdb8fde179b178aa2f81bf6502c5cd8be094/internal/linux/proc/process.go#L74-L90 https://github.com/pranshuparmar/witr/blob/1e47bdb8fde179b17...
- pranshuparmar 9mo agoYes, that's correct! It walks up from the process’s working directory looking for a `.git` folder to detect the repo and branch. Thanks.