-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate documentation pages #448
Comments
Fully agreed. However, most hub commands are overloaded git commands. What would we show when someone types This is the primary reason we sticked with a single man page for hub until now. I welcome suggestions how to improve this, but you must keep in mind that we don't want to mess with git's own functionality. |
IMHO
|
One problem: when hub is aliased to |
I'm not very familiar with the exact way hub wraps git, but it should be |
Sorry, meant |
$ cat > hub <<<"#\!/bin/bash
echo hello from \$0"
$ ./hub
hello from ./hub
$ alias git=./hub
$ git
hello from ./hub # expected "git"
$ bash -c 'exec -a moo ./hub'
hello from /full/path/to/hub # expected "moo" |
@mislav I was wrong :) However I think I've found the dumbest way to check how Using echo `history 1` | cut --delimiter=" " -f 2 |
It's an original idea, but I wouldn't use it. I wouldn't work if someone has history disabled, and it will likely not work when shelling out of Ruby because the inner shell is not guaranteed to match the outer, interactive shell |
@mislav Does this mean we would not have separate man pages, because of implementation limitations? There must be a way! 😄 |
Of course there's a way. We can have separate documentation pages, but not under |
We could use something like |
|
This was done in #1087 and will be part of 2.3 release! |
I would like
hub
to have separate documentation pages (a.k.a. man pages) for eachhub
command. Just likegit
does.When one types
hub help browse
the wholehub
documentation pops up and the user needs to find the description and available arguments for the desired command.Someone might even use a
hub
command without knowing he's usinghub
. In this case when he typesgit help browse
, he will see some documentation which is not directly related.The text was updated successfully, but these errors were encountered: