Hacker News new | past | comments | ask | show | jobs | submit login

> Download binary (...) Then test that Git can find the application:

> git credential-oauth

> If you have problems, make sure that the binary is located in the path and is executable.

Wait, git will happily run random binaries in path?

Is there a complete list of these? I take it git credential-format-hd and git remote-format-hd will at least work?

(This is ofcourse in addition to hooks).




Git will translate any call in the likes of `git foo bar baz` to a call to a binary `git-foo bar baz`. See https://stackoverflow.com/questions/10978257/extending-git-f....


Thank you. This behavior isn't documented in the man pages as far as I can tell?


Suprisingly calling "man git add" will also look for a manpage call "git-add" and display it.


Apparently, not. Side note, kubectl also has this feature with similar convention wrt binary name pattern.


Lots of things will run random things in path... For example, some people like to use source foo in shell scripts to load another script, but that will first search PATH for foo and load it. You have to specify a "/" in foo in order to avoid the PATH search.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: