May 15, 2011
On 2011-05-15 04:08, Jacob Carlborg wrote:
> On 15 maj 2011, at 11:16, Jonathan M Davis wrote:
> > On 2011-05-15 02:07, Michel Fortin wrote:
> >> Le 2011-05-15 ? 4:06, Jonathan M Davis a ?crit :
> >>> On 2011-05-15 00:39, Russel Winder wrote:
> >>>> On Sun, 2011-05-15 at 00:31 -0700, Jonathan M Davis wrote: [ . . . ]
> >>>> 
> >>>>> I believe that git-push --tags will push the tags, so you probably need to run something like
> >>>> 
> >>>> Isn't git-push somewhat out of date, shouldn't that be git push?  ;-)
> >>> 
> >>> Both are valid. There's nothing out-of-date about either.
> >> 
> >> $ git-push
> >> -bash: git-push: command not found
> >> 
> >> $ git push
> >> fatal: Not a git repository (or any of the parent directories): .git
> >> 
> >> $ git --version
> >> git version 1.7.2.2
> >> 
> >> Clearly one works and the other doesn't for me. It used to work with earlier versions. Which version of git do you have?
> > 
> > It's probably a PATH issue. I have git version 1.7.5.1. Depending on your distro, it may or may not have the git-* files in your PATH. On Arch, they're in /usr/lib/git-core, and I had to add that to my PATH. If you're on Windows, I don't know what you need to do to get them to work. The git bash shell doesn't have them by default, and I haven't spent enough time in Windows to make it worth figuring out how to make them available.
> 
> I found them in /opt/local/libexec/git-core on Mac OS X.
> 
> > I prefer the git-* commands though, since you get command completion with them. Also, the man pages use those names. But it is true that your distro may not have set it up so that they're on the PATH. But you should be able to get them to work but just figuring out which directory they're in on your system and adding them to your PATH.
> 
> I'm pretty certain that you should get command completion with the "git command" syntax as well.

Really? I don't generally expect command completion to work if it's not part of the executable's name.

- Jonathan M Davis
May 15, 2011
On Sun, 2011-05-15 at 04:14 -0700, Jonathan M Davis wrote: [ . . . ]
> Really? I don't generally expect command completion to work if it's not part of the executable's name.

Bash completion works on any part of the command line that someone has written a script for.  On Debian Testing I get full completion for all components of a command line.  This should also apply to Mac OS X. Windows is a different multiverse.

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at russel.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20110515/2b94fa54/attachment.pgp>
May 15, 2011
On 15 maj 2011, at 14:32, Russel Winder wrote:

> On Sun, 2011-05-15 at 04:14 -0700, Jonathan M Davis wrote: [ . . . ]
>> Really? I don't generally expect command completion to work if it's not part of the executable's name.
> 
> Bash completion works on any part of the command line that someone has written a script for.  On Debian Testing I get full completion for all components of a command line.  This should also apply to Mac OS X. Windows is a different multiverse.

Unfortunately  Mac OS X doesn't have bash completion out of the box. But you can install it via Ports.

> -- 
> Russel.
> =============================================================================
> Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at russel.org.uk
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos

-- 
/Jacob Carlborg

May 15, 2011
Le 2011-05-15 ? 7:08, Jacob Carlborg a ?crit :

> On 15 maj 2011, at 11:16, Jonathan M Davis wrote:
> 
>> It's probably a PATH issue. I have git version 1.7.5.1. Depending on your distro, it may or may not have the git-* files in your PATH. On Arch, they're in /usr/lib/git-core, and I had to add that to my PATH. If you're on Windows, I don't know what you need to do to get them to work. The git bash shell doesn't have them by default, and I haven't spent enough time in Windows to make it worth figuring out how to make them available.
> 
> I found them in /opt/local/libexec/git-core on Mac OS X.

That will depend on your installation method. Likely you've installed git using MacPorts. If you install Xcode 4 you'll have git installed in /usr/bin and its subcommands in /usr/libexec/git-core. If you compile and install git from source with the default install path I think it'll go to /usr/local/bin and /usr/local/libexec/git-core.

Hey, I just discovered I have two versions of git installed. :-)

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



May 15, 2011
On Sun, 2011-05-15 at 15:49 +0200, Jacob Carlborg wrote:
[ . . . ]
> Unfortunately  Mac OS X doesn't have bash completion out of the box. But you can install it via Ports.

You may want to submit a bug report to the people packaging Bash Completion for MacPorts -- they do not include the script for Git :-((

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at russel.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20110515/63d8af1d/attachment.pgp>
May 15, 2011
On Sun, 2011-05-15 at 15:29 +0100, Russel Winder wrote:
> On Sun, 2011-05-15 at 15:49 +0200, Jacob Carlborg wrote:
> [ . . . ]
> > Unfortunately  Mac OS X doesn't have bash completion out of the box. But you can install it via Ports.
> 
> You may want to submit a bug report to the people packaging Bash Completion for MacPorts -- they do not include the script for Git :-((

Sorry my error -- on Debian Testing, the git bash completion is installed via the git package.  So I guess the question is why hasn't the git MacPorts package done the same.

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at russel.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20110515/b77c2cfc/attachment.pgp>
May 15, 2011
On Sun, 2011-05-15 at 15:35 +0100, Russel Winder wrote:
> On Sun, 2011-05-15 at 15:29 +0100, Russel Winder wrote:
> > On Sun, 2011-05-15 at 15:49 +0200, Jacob Carlborg wrote:
> > [ . . . ]
> > > Unfortunately  Mac OS X doesn't have bash completion out of the box. But you can install it via Ports.
> > 
> > You may want to submit a bug report to the people packaging Bash Completion for MacPorts -- they do not include the script for Git :-((
> 
> Sorry my error -- on Debian Testing, the git bash completion is installed via the git package.  So I guess the question is why hasn't the git MacPorts package done the same.

sudo port install git-core +doc +svn +bash_completion

seems to suffice -- clearly the +doc and +svn are of no relevance to the Bash Completion.

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at russel.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20110515/c146ae05/attachment-0001.pgp>
May 15, 2011
On 5/15/11 4:16 AM, Jonathan M Davis wrote:
> I prefer the git-* commands though, since you get command completion with them. Also, the man pages use those names. But it is true that your distro may not have set it up so that they're on the PATH. But you should be able to get them to work but just figuring out which directory they're in on your system and adding them to your PATH.

Under zsh I have command completion for all git commands and subcommands. (Granted, that doesn't make me considerably more fluent at it...)

My understanding is that git xyz actually exec()s git-xyz under the wraps, so if you have one you have the other.


Andrei
May 15, 2011
On 5/15/11 6:14 AM, Jonathan M Davis wrote:
> Really? I don't generally expect command completion to work if it's not part of the executable's name.

1. Completion in all shells has gotten incredibly advanced. http://www.linux-mag.com/id/1106/

2. Everybody should use zsh effective immediately. It enhances productivity so badly it's not even funny.


Andrei
May 15, 2011
On 15 May 2011 16:02, Andrei Alexandrescu <andrei at erdani.com> wrote:

> On 5/15/11 6:14 AM, Jonathan M Davis wrote:
>
>> Really? I don't generally expect command completion to work if it's not
>> part
>> of the executable's name.
>>
>
> 1. Completion in all shells has gotten incredibly advanced. http://www.linux-mag.com/id/1106/
>
> 2. Everybody should use zsh effective immediately. It enhances productivity so badly it's not even funny.
>

I used zsh for a bit, I switched back to bash after doing a clean install of my OS though. Bash is far more functional when it's preconfigured for you, zsh tends to be lacking configuration, something I can't be bothered doing. Even when I was using it I didn't see any advantages really :>

-- 
Robert
http://octarineparrot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20110515/adbc1a89/attachment.html>