Re: Support of '^' as alias for 'HEAD^'

2012-07-15 Thread Zeeshan Ali (Khattak)
On Sun, Jul 15, 2012 at 8:45 PM, Holger Hellmuth wrote: > Am 15.07.2012 00:24, schrieb Zeeshan Ali (Khattak): > >> On Sun, Jul 15, 2012 at 12:26 AM, Junio C Hamano >> wrote: >>> >>> "Zeeshan Ali (Khattak)" writes: >>> What about '^' and '^^' that I suggested? > > > If you want a shortcut, yo

Re: Support of '^' as alias for 'HEAD^'

2012-07-15 Thread Holger Hellmuth
Am 15.07.2012 00:24, schrieb Zeeshan Ali (Khattak): On Sun, Jul 15, 2012 at 12:26 AM, Junio C Hamano wrote: "Zeeshan Ali (Khattak)" writes: What about '^' and '^^' that I suggested? If you want a shortcut, you might try this: echo "ref: HEAD" > .git/h Then you can use 'h' instead of 'HEA

Re: Support of '^' as alias for 'HEAD^'

2012-07-15 Thread Jeff King
On Sun, Jul 15, 2012 at 01:24:18AM +0300, Zeeshan Ali (Khattak) wrote: > > Think what "log ^^ origin" would mean. Is it "log ^HEAD^ origin"? > > Is it "log HEAD^^ origin"? They mean totally different things. > > Sorry for my ignorance here but what does ^ *before* HEAD even mean? I It means "n

Re: Support of '^' as alias for 'HEAD^'

2012-07-14 Thread Zeeshan Ali (Khattak)
On Sun, Jul 15, 2012 at 12:26 AM, Junio C Hamano wrote: > "Zeeshan Ali (Khattak)" writes: > >> What about '^' and '^^' that I suggested? >> While I see your "~" much distasteful compared to "^", you still >>> >>> s/dist/less dist/; sorry ;-) >> >> Why? > > That "^^" is the most important rea

Re: Support of '^' as alias for 'HEAD^'

2012-07-14 Thread Junio C Hamano
"Zeeshan Ali (Khattak)" writes: > What about '^' and '^^' that I suggested? > >>> While I see your "~" much distasteful compared to "^", you still >> >> s/dist/less dist/; sorry ;-) > > Why? That "^^" is the most important reason why your "^ is the same as HEAD^" is flawed, and goes against my t

Re: Support of '^' as alias for 'HEAD^'

2012-07-14 Thread Zeeshan Ali (Khattak)
On Sat, Jul 14, 2012 at 11:34 PM, Junio C Hamano wrote: > Junio C Hamano writes: > >> Stefan Näwe writes: >> >>> Zeeshan Ali (Khattak gnome.org> writes: Many times I want to refer to 'HEAD^', 'HEAD^^' and sometimes even further up the tree. It would be really nice if I didn't hav

Re: Support of '^' as alias for 'HEAD^'

2012-07-14 Thread Junio C Hamano
Junio C Hamano writes: > Stefan Näwe writes: > >> Zeeshan Ali (Khattak gnome.org> writes: >>> >>> Many times I want to refer to 'HEAD^', 'HEAD^^' and sometimes even >>> further up the tree. It would be really nice if I didn't have to type >>> 'HEAD^' but could only type '^'. Bash completion ma

Re: Support of '^' as alias for 'HEAD^'

2012-07-14 Thread Junio C Hamano
Stefan Näwe writes: > Zeeshan Ali (Khattak gnome.org> writes: >> >> Many times I want to refer to 'HEAD^', 'HEAD^^' and sometimes even >> further up the tree. It would be really nice if I didn't have to type >> 'HEAD^' but could only type '^'. Bash completion make things easier >> but it automa

Re: Support of '^' as alias for 'HEAD^'

2012-07-14 Thread Stefan Näwe
Zeeshan Ali (Khattak gnome.org> writes: > > Hi, > Many times I want to refer to 'HEAD^', 'HEAD^^' and sometimes even > further up the tree. It would be really nice if I didn't have to type > 'HEAD^' but could only type '^'. Bash completion make things easier > but it automatically inserts a sp

Support of '^' as alias for 'HEAD^'

2012-07-13 Thread Zeeshan Ali (Khattak)
Hi, Many times I want to refer to 'HEAD^', 'HEAD^^' and sometimes even further up the tree. It would be really nice if I didn't have to type 'HEAD^' but could only type '^'. Bash completion make things easier but it automatically inserts a space immediately after HEAD so you have to hit backspace