Re: [RFC/PATCH] shell: allow 'help' command to disable interactive shell

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [RFC/PATCH] shell: allow 'help' command to disable interactive shell

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:56:07

Ethan Reesor [off-list ref] writes:
quoted
For those who _do_ want to give customized commands to their users,
they can already have "help" script to give a friendly message.  It
just felt silly to force sites to create the directory only to
refuse an access to the "custom commands" feature, especially when
the existence of that directory is a signal that the site may want
to give its users an acess to that feature.
Again, would it not be more elegant and powerful to A) have the
shell-disabled message/hook/etc specified by git-config on some level,
be it /etc/gitconfig or ~/.gitconfig, and B) have Jonathan's patch
whereby ~/git-shell-commands/help returning non-zero closes the
connection?
Isn't that what I have essentially been saying?

For sites that do not want per-user customizable "other commands",
have a single site-wide hook instead of having to create otherwise
empty shell-commands directories for all users.  For users a site
wants to allow customized commands, have the directory and custom
"help" message.  I do not care too deeply if "help" exiting non-zero
caused the connection closed, but I care about not forcing a lot of
effort to customize messages to people who do *not* need
customizability.

Re: [RFC/PATCH] shell: allow 'help' command to disable interactive shell

From: Ethan Reesor <hidden>
Date: 2016-06-15 22:56:07

On Mon, Feb 11, 2013 at 2:22 AM, Junio C Hamano [off-list ref] wrote:
Ethan Reesor [off-list ref] writes:
quoted
Again, would it not be more elegant and powerful to A) have the
shell-disabled message/hook/etc specified by git-config on some level,
be it /etc/gitconfig or ~/.gitconfig, and B) have Jonathan's patch
whereby ~/git-shell-commands/help returning non-zero closes the
connection?
Isn't that what I have essentially been saying?
That is what you've been saying. I reiterated because I like the idea
of having it managed via git config.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help