git-toolbelt icon indicating copy to clipboard operation
git-toolbelt copied to clipboard

Mention 'realpath' dependency in README or re-implement as shell function?

Open ernstki opened this issue 4 years ago • 1 comments

Therealpath utility is part of GNU coreutils, and won't be present by default on macOS or BSD. If installed with MacPorts, it will be called grealpath.

Ideally realpath could be reimplemented as a shell function instead. Re-implementing the behavior of realpath --relative-to=. would be a challenge in plain shell script, so maybe it's best to just mention the dependency on coreutils in the README, and call grealpath if realpath can't be found.

The affected toolbelt commands are git-autofixup, git-modified, and git-modified-since (code search).

ernstki avatar May 17 '20 07:05 ernstki

Uh, just realized that your "official" installation instructions use your Brew tap, and this brings in coreutils as a dependency.

ernstki avatar May 17 '20 22:05 ernstki

Resolved in #56. Thanks!

ernstki avatar Apr 17 '23 13:04 ernstki