Re: [RFC/PATCH] git put: an alternative to add/reset/checkout

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [RFC/PATCH] git put: an alternative to add/reset/checkout

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:51:26

Jakub Narebski [off-list ref] writes:
Matthieu Moy wrote:
quoted
Jeff King [off-list ref] writes:
quoted
On Wed, Jun 08, 2011 at 07:28:35PM +0200, Matthieu Moy wrote:
quoted
quoted
Jeff King [off-list ref] writes:

* @{wtree} would confuse users that it has something to do with reflog
Well, we already have @{upstream} ...
Yes, but like all of the @{} things, it's a modifier for the left-hand
side. So "master@{upstream}" is meaningful, and "@{upstream}" is the
same as "HEAD@{upstream}".

What does "master@{wtree}" mean?
Nothing, but then we already have @{-1} ;-).
That's actually HEAD reflog.
Yes, but neither HEAD@{-1} nor master@{-1} work. So we have one instance
of @{...} which is unrelated from reflog, and another which isn't a
suffix. @{wtree} would be both.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

Re: [RFC/PATCH] git put: an alternative to add/reset/checkout

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:51:27

Matthieu Moy wrote:
Jakub Narebski [off-list ref] writes:
quoted
Matthieu Moy wrote:
quoted
Jeff King [off-list ref] writes:
quoted
On Wed, Jun 08, 2011 at 07:28:35PM +0200, Matthieu Moy wrote:
quoted
quoted
Jeff King [off-list ref] writes:

* @{wtree} would confuse users that it has something to do with reflog
Well, we already have @{upstream} ...
Yes, but like all of the @{} things, it's a modifier for the left-hand
side. So "master@{upstream}" is meaningful, and "@{upstream}" is the
same as "HEAD@{upstream}".

What does "master@{wtree}" mean?
Nothing, but then we already have @{-1} ;-).
That's actually HEAD reflog.
Yes, but neither HEAD@{-1} nor master@{-1} work. So we have one instance
of @{...} which is unrelated from reflog, and another which isn't a
suffix. @{wtree} would be both.
But both are about refs (upstream of a ref, or previously checked-out ref).
@{wtree} ain't.

-- 
Jakub Narebski
Poland
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help