git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [kernel.org users] README and ChangeLog files
       [not found]                     ` <48AD03BD.9000909@zytor.com>
@ 2008-08-21 15:35                       ` Linus Torvalds
  2008-08-21 16:01                         ` Petr Baudis
  2008-08-21 16:32                         ` Michael J Gruber
  0 siblings, 2 replies; 5+ messages in thread
From: Linus Torvalds @ 2008-08-21 15:35 UTC (permalink / raw)
  To: H. Peter Anvin
  Cc: Eric W. Biederman, Matthias Urlichs, Luck, Tony, users@kernel.org,
	Matt Mackall, Russell King, Git Mailing List



On Wed, 20 Aug 2008, H. Peter Anvin wrote:
> 
> Personally, I think this grand renaming was a huge step backwards; an attempt
> to be bug-compatible with other SCMs.  The only people I personally ever saw
> complaining about the situation in the first place were people who were
> fanbois of some other SCM.

Heh. It's true that the push came from people who were used to the "scm 
xyz" model, but it's also true that git basically made the situation in 
/usb/bin even worse. 

You _can_ actually have the "best of both worlds" (if you really do want 
to continue the "git-xyzzy" usage) by doing

	PATH=$PATH:$(git --exec-path)

although there has been noise about removing the built-in commands 
entirely even from there. I'm cc'ing the git mailing list just to bring 
the point up - I'm the one who actually championed removing the 
"unnecessary" hardlinks, and it seems that nto doing so was the right 
choice.

One of the reasons that the dashed format is being removed is a real 
technical one, though: git aliases. They never supported the dashed 
format, since they never were real executables (that's the whole point of 
an alias, after all).

So even with the above path thing, you'll still have to use the spacey 
version for any aliases you use.

			Linus

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [kernel.org users] README and ChangeLog files
  2008-08-21 15:35                       ` [kernel.org users] README and ChangeLog files Linus Torvalds
@ 2008-08-21 16:01                         ` Petr Baudis
  2008-08-21 16:32                         ` Michael J Gruber
  1 sibling, 0 replies; 5+ messages in thread
From: Petr Baudis @ 2008-08-21 16:01 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: H. Peter Anvin, Eric W. Biederman, Matthias Urlichs, Luck, Tony,
	users@kernel.org, Matt Mackall, Russell King, Git Mailing List

On Thu, Aug 21, 2008 at 08:35:52AM -0700, Linus Torvalds wrote:
> One of the reasons that the dashed format is being removed is a real 
> technical one, though: git aliases. They never supported the dashed 
> format, since they never were real executables (that's the whole point of 
> an alias, after all).

On the other hand, with the dashed form you can easily use shell
aliases. Sure, there are differences, like that they are set per-session
at most, not per-repository; but if you actually define different
aliases with same names in your repositories, that seems like shooting
yourself in the foot elaborately most of the time.

				Petr "Pasky" Baudis

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [kernel.org users] README and ChangeLog files
  2008-08-21 15:35                       ` [kernel.org users] README and ChangeLog files Linus Torvalds
  2008-08-21 16:01                         ` Petr Baudis
@ 2008-08-21 16:32                         ` Michael J Gruber
  1 sibling, 0 replies; 5+ messages in thread
From: Michael J Gruber @ 2008-08-21 16:32 UTC (permalink / raw)
  To: git

Linus Torvalds venit, vidit, dixit 21.08.2008 17:35:
> 
> On Wed, 20 Aug 2008, H. Peter Anvin wrote:
>> Personally, I think this grand renaming was a huge step backwards; an attempt
>> to be bug-compatible with other SCMs.  The only people I personally ever saw
>> complaining about the situation in the first place were people who were
>> fanbois of some other SCM.
> 
> Heh. It's true that the push came from people who were used to the "scm 
> xyz" model, but it's also true that git basically made the situation in 
> /usb/bin even worse. 
> 
> You _can_ actually have the "best of both worlds" (if you really do want 
> to continue the "git-xyzzy" usage) by doing
> 
> 	PATH=$PATH:$(git --exec-path)
> 
> although there has been noise about removing the built-in commands 
> entirely even from there. I'm cc'ing the git mailing list just to bring 
> the point up - I'm the one who actually championed removing the 
> "unnecessary" hardlinks, and it seems that nto doing so was the right 
> choice.
> 
> One of the reasons that the dashed format is being removed is a real 
> technical one, though: git aliases. They never supported the dashed 
> format, since they never were real executables (that's the whole point of 
> an alias, after all).
> 
> So even with the above path thing, you'll still have to use the spacey 
> version for any aliases you use.

Come to think of it: Maybe commands like "git pull" should, when
spitting out warnings, refer to "git help pull" rather than
"git-pull(1)" now. I do like it spacey, but the man issue is confusing.
It continues with the links in the help/man pages, of course.

Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [kernel.org users] README and ChangeLog files
       [not found]                       ` <20080822082908.GA29475@isilmar.linta.de>
@ 2008-08-22 21:13                         ` Junio C Hamano
  2008-08-22 23:09                           ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2008-08-22 21:13 UTC (permalink / raw)
  To: Dominik Brodowski
  Cc: Theodore Tso, Matthias Urlichs, Russell, H. Peter Anvin, users,
	Matt Mackall, Linus Torvalds, King, git

Dominik Brodowski <linux@dominikbrodowski.net> writes:

> On Thu, Aug 21, 2008 at 04:20:25PM -0700, Junio C Hamano wrote:
>> Yes, and the fact that it is not "git-foo" that was deprecated, but
>> running the dashed-form without adjusting PATH was, makes it impractical
>> to issue warning messages before the transition actually happened.
>
> So I can safely ignore the warning in the release notes which states
>
> | but users are again strongly encouraged to adjust their
> | scripts to use "git xyzzy" form, as we will stop installing
> | "git-xyzzy" hardlinks for built-in commands in later releases.
>
> ?

No.  What the above means is that the deprecation and removal of git-foo
for builtins (such as "git commit") are not done in 1.6.0, but it will
eventually happen.  So your two choices are:

 (1) stop using dashed form "git-foo" and replace them with "git foo" form
     everywhere in your script now and won't worry about this anymore; or

 (2) add this to the beginning of your existing scripts:

     PATH=$(git --exec-path):$PATH

     and later do (1) when you have time.

But if you choose to do the latter, please do so after promising that you
won't complain like this time everybody did, saying "Oh, I knew it was
coming but I have postponed doing it for a long time because it continued
to work" ;-)

[jc: git list cc'ed]

Maybe we should try to see how hard it would be to issue warnings when
"git-foo" form is used for builtins before we declare that dashed form is
deprecated for builtins, and start warning when the deprecation actually
happens.  As many people on this thread suggested, it would make the
transition easier.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [kernel.org users] README and ChangeLog files
  2008-08-22 21:13                         ` Junio C Hamano
@ 2008-08-22 23:09                           ` Jeff Garzik
  0 siblings, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2008-08-22 23:09 UTC (permalink / raw)
  To: Junio C Hamano
  Cc: Dominik Brodowski, Matthias Urlichs, Theodore Tso, H. Peter Anvin,
	users, git, Russell, Matt Mackall, Linus Torvalds, King

Junio C Hamano wrote:
> Maybe we should try to see how hard it would be to issue warnings when
> "git-foo" form is used for builtins before we declare that dashed form is
> deprecated for builtins, and start warning when the deprecation actually
> happens.  As many people on this thread suggested, it would make the
> transition easier.


I would tend to prefer a compatibility package or similar.

My fingers have long learned "git-prefix<tab>" for several commands. 
And Fedora puts so much crap in /usr/bin anyway, I don't see it a big 
deal to have all those names in the directory.

Actually, I bet git-foo, git-bar, and git-blah could all link to the 
same compatibility script, which simply invokes "git $command $args..."

That would be nice.

	Jeff

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-22 23:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <48AC5972.80908@zytor.com>
     [not found] ` <20080820182636.GJ8318@parisc-linux.org>
     [not found]   ` <48AC6839.7050605@zytor.com>
     [not found]     ` <1219264114.7576.1121.camel@calx>
     [not found]       ` <20080820210733.GA418@smurf.noris.de>
     [not found]         ` <20080820223033.GD18947@flint.arm.linux.org.uk>
     [not found]           ` <alpine.LFD.1.10.0808201552070.3487@nehalem.linux-foundation.org>
     [not found]             ` <57C9024A16AD2D4C97DC78E552063EA309E70713@orsmsx505.amr.corp.intel.com>
     [not found]               ` <20080820232332.GE18947@flint.arm.linux.org.uk>
     [not found]                 ` <alpine.LFD.1.10.0808201629590.3487@nehalem.linux-foundation.org>
     [not found]                   ` <m163pv59lo.fsf@frodo.ebiederm.org>
     [not found]                     ` <48AD03BD.9000909@zytor.com>
2008-08-21 15:35                       ` [kernel.org users] README and ChangeLog files Linus Torvalds
2008-08-21 16:01                         ` Petr Baudis
2008-08-21 16:32                         ` Michael J Gruber
     [not found]             ` <1219273792.7576.1146.camel@calx>
     [not found]               ` <alpine.LFD.1.10.0808201622260.3487@nehalem.linux-foundation.org>
     [not found]                 ` <1219294266.7576.1180.camel@calx>
     [not found]                   ` <20080821125945.GE16634@mit.edu>
     [not found]                     ` <7vk5eaez0m.fsf@gitster.siamese.dyndns.org>
     [not found]                       ` <20080822082908.GA29475@isilmar.linta.de>
2008-08-22 21:13                         ` Junio C Hamano
2008-08-22 23:09                           ` Jeff Garzik

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).