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

Add --file option.

Open bwelling opened this issue 5 years ago • 5 comments

This adds a --file option, allowing git open --file <path>, where <path> is a path within the repository, and can either be a file or directory.

This is similar to what was requested years ago in #54, but isn't automatic. Presumably it could be made automatic, if someone more familiar with git internals and better at writing shell scripts than me wanted it to be.

bwelling avatar Aug 25 '20 23:08 bwelling

Does anyone care about this? It's been open for almost 2 months, with only a trivial (and addressed) comment.

bwelling avatar Oct 21 '20 00:10 bwelling

It would be nice to have.

SuperSandro2000 avatar Oct 21 '20 10:10 SuperSandro2000

+1 for this request, I'm currently using the feature branch in place of master

nharsch avatar Sep 01 '21 16:09 nharsch

Would it be better to have a more general --path instead? So we can also open directories in GitHub's navigator.

pharmpy-dev-123 avatar Sep 23 '22 09:09 pharmpy-dev-123

Does this open the file in the current git checkout out branch or commit?

pharmpy-dev-123 avatar Sep 23 '22 09:09 pharmpy-dev-123