* docs and completion and dashless commands
@ 2008-08-22 20:26 dherring
2008-08-22 21:34 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: dherring @ 2008-08-22 20:26 UTC (permalink / raw)
To: git
First off, I'm not too keen on these dashless commands.
- We now have `man git-X` but can't run `git-X`
- A separate completion script must be installed for bash
- Lose completion for all other shells
- History expansion is complicated (e.g. `!git-push` vs `!git push`)
I tracked down "Invoke git-repo-config directly" (March 06) and related
threads; so I somewhat understand the logic. However the notions that
moving bin/git-X to libexec/git-core/git-X somehow hides complexity for
the user or fixes problems with PATH seem misguided. Maybe there were
some other reasons I missed?
Anyway, could someone modify INSTALL to mention
contrib/completion/git-completion.bash and putting `git --exec-path` in
PATH for other shells? A man page about configuring shells for git would
also be nice. These docs might also instruct users to call git-config and
set their global username and email.
Also, with the dashless commands, it may be more appropriate to distribute
a texinfo tree than flat manpages.
Thanks,
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: docs and completion and dashless commands
2008-08-22 20:26 docs and completion and dashless commands dherring
@ 2008-08-22 21:34 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2008-08-22 21:34 UTC (permalink / raw)
To: dherring; +Cc: git
dherring@ll.mit.edu writes:
> First off, I'm not too keen on these dashless commands.
> - We now have `man git-X` but can't run `git-X`
> - A separate completion script must be installed for bash
> - Lose completion for all other shells
> - History expansion is complicated (e.g. `!git-push` vs `!git push`)
Please stop and leave the dead horse lie in piece. You are more than a
year too late.
> Anyway, could someone modify INSTALL to mention
> contrib/completion/git-completion.bash and putting `git --exec-path`
> in PATH for other shells?
And please nobody waste time on the latter. "git-foo" form for builtins
will be removed from the filesystem eventually and at that point:
#!/bin/sh
PATH=$(git --exec-path):$PATH
.. do its thing ..
git-commit -a -m 'funny wrapper created commit'
will _stop_ working. If somebody is starting a new script there is no
point using the form only to later update to the dashless form.
> These docs might also instruct users to call
> git-config and set their global username and email.
Please read the first few paragraphs of gittutorial(7).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-22 21:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-22 20:26 docs and completion and dashless commands dherring
2008-08-22 21:34 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).