Re: `@` alias for `HEAD` not working in `git push -u origin @`

2019-07-31 Thread Junio C Hamano
Jeff King writes: > On Wed, Jul 10, 2019 at 11:39:37PM +, brian m. carlson wrote: > >> This is a bug. If the destination side of a refspec is omitted, and the >> source side resolves to a ref starting with "refs/heads/" or >> "refs/tags/" (which I expect it does here), then that ref is used a

Re: `@` alias for `HEAD` not working in `git push -u origin @`

2019-07-30 Thread Jeff King
On Wed, Jul 10, 2019 at 11:39:37PM +, brian m. carlson wrote: > This is a bug. If the destination side of a refspec is omitted, and the > source side resolves to a ref starting with "refs/heads/" or > "refs/tags/" (which I expect it does here), then that ref is used as the > destination. > >

Re: `@` alias for `HEAD` not working in `git push -u origin @`

2019-07-12 Thread Johannes Schindelin
Hi brian, On Thu, 11 Jul 2019, brian m. carlson wrote: > On 2019-07-11 at 09:46:26, Johannes Schindelin wrote: > > > Since I have your attention and since I am interested in a related issue > > (when I wanted to propose a GSoC mini project to let `git fetch > > @` expand the `@` to the current (

Re: `@` alias for `HEAD` not working in `git push -u origin @`

2019-07-11 Thread brian m. carlson
On 2019-07-11 at 09:46:26, Johannes Schindelin wrote: > After reading that thread, I come to the conclusion that it was not so > much a decision not to pick it up, but more like a falling between the > cracks. > > I would be in favor of this patch. I think there was some later follow-up in a diff

Re: `@` alias for `HEAD` not working in `git push -u origin @`

2019-07-11 Thread Johannes Schindelin
Hi brian, On Wed, 10 Jul 2019, brian m. carlson wrote: > On 2019-07-10 at 05:06:08, Mark Florian wrote: > > > > I learned today that `@` is a shortcut for `HEAD`. From `git help > > reivisions`: > > > > @ alone is a shortcut for HEAD. > > > > However, when I tried to use it in a command I fr

Re: `@` alias for `HEAD` not working in `git push -u origin @`

2019-07-10 Thread brian m. carlson
On 2019-07-10 at 05:06:08, Mark Florian wrote: > Hello! > > I learned today that `@` is a shortcut for `HEAD`. From `git help reivisions`: > > @ alone is a shortcut for HEAD. > > However, when I tried to use it in a command I frequently use, I got an error: > > $ git push -u origin @ >

`@` alias for `HEAD` not working in `git push -u origin @`

2019-07-09 Thread Mark Florian
Hello! I learned today that `@` is a shortcut for `HEAD`. From `git help reivisions`: @ alone is a shortcut for HEAD. However, when I tried to use it in a command I frequently use, I got an error: $ git push -u origin @ fatal: invalid refspec '@' I'm running git version 2.22.0 on L