Skip to main content
4 events
when toggle format what by license comment
May 3 at 10:01 comment added Flimm @Kusalananda Thanks. I would upvote other answers that use this approach. I personally want to keep my answer as is, as it is an approach that could be modified for other directories, not just .git
May 3 at 9:54 review Suggested edits
May 3 at 10:00
Nov 22, 2023 at 10:51 comment added Kusalananda Note that you can use git rev-parse --show-toplevel to get the absolute path of the current repository. This may simplify your function a bit.
Nov 22, 2023 at 10:41 history answered Flimm CC BY-SA 4.0