Re: [PATCH] Move all dashed form git commands to libexecdir
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Nov 30, 2007, 15:50 UTC
- Message-ID
- <alpine.LFD.0.9999.0711300745330.8458@woody.linux-foundation.org>
- In-Reply-To
- <20071130152942.GA22489@coredump.intra.peff.net>
On Fri, 30 Nov 2007, Jeff King wrote:
Show 10 quoted lines
> > On Fri, Nov 30, 2007 at 04:28:21PM +0100, Santi Béjar wrote: > > > But I am not opposed to having some "git foo" form for gitk. > > > > In mercurial "hg view" is actually an old version of gitk modified for hg. > > > > And as "git view" it could be added to the "git help" list. > > Unfortunately, there is already a "gitview" program similar to gitk, > although it never made it out of contrib/.
Well, different people will want different viewers *anyway* (ie some will prefer qgit etc), so how about making "git view" be something that literally acts as a built-in alias that just defaults to running gitk (if for no other reason than the fact that gitk is the one that ships with git, and simply has most users).
There's a few other things that I think we could consider to be good built-in aliases: things like "git cat" being an alias for "git -p cat-file -p" etc.
The only difference between a "built-in alias" and a "built-in command" would be: - the alias has never even had the "git-xyz" format, and never will - the alias can be overridden by user aliases unlike "real" git commands
Hmm?
That way we can hide away gitk too (although I do suspect that we might as well just leave gitk in the path - it's different in naming from all the git-xyz commands anyway)
Linus