* checkout @{-1} bug/oddity
@ 2009-04-19 15:37 Adeodato Simó
2009-04-19 20:36 ` Thomas Rast
0 siblings, 1 reply; 3+ messages in thread
From: Adeodato Simó @ 2009-04-19 15:37 UTC (permalink / raw)
To: git
In case this is worth fixing:
| % g co -b foo
| Switched to a new branch 'foo'
|
| % g co -
| Switched to branch 'master'
|
| % g co -b bar
| Switched to a new branch 'bar'
|
| % g co bar
| Already on 'bar'
|
| % g co -
| Already on 'bar'
In my opinion the last command should switch to master, as in, switching
to the current branch should not lose the @{-1} history.
Thanks,
--
- Are you sure we're good?
- Always.
-- Rory and Lorelai
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: checkout @{-1} bug/oddity
2009-04-19 15:37 checkout @{-1} bug/oddity Adeodato Simó
@ 2009-04-19 20:36 ` Thomas Rast
2009-04-20 8:16 ` Adeodato Simó
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Rast @ 2009-04-19 20:36 UTC (permalink / raw)
To: Adeodato Simó; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 560 bytes --]
Adeodato Simó wrote:
> | % g co bar
> | Already on 'bar'
> |
> | % g co -
> | Already on 'bar'
>
> In my opinion the last command should switch to master, as in, switching
> to the current branch should not lose the @{-1} history.
This is by analogy with 'cd'. Try 'cd .; cd -' in the shell.
See
http://article.gmane.org/gmane.comp.version-control.git/106583
for the original mention; I don't have the time to re-read the entire
thread, but IIRC it was not discussed again.
--
Thomas Rast
trast@{inf,student}.ethz.ch
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: checkout @{-1} bug/oddity
2009-04-19 20:36 ` Thomas Rast
@ 2009-04-20 8:16 ` Adeodato Simó
0 siblings, 0 replies; 3+ messages in thread
From: Adeodato Simó @ 2009-04-20 8:16 UTC (permalink / raw)
To: Thomas Rast; +Cc: git
+ Thomas Rast (Sun, 19 Apr 2009 22:36:29 +0200):
> This is by analogy with 'cd'. Try 'cd .; cd -' in the shell.
> See
> http://article.gmane.org/gmane.comp.version-control.git/106583
> for the original mention; I don't have the time to re-read the entire
> thread, but IIRC it was not discussed again.
Ok!, thanks for the explanations.
--
- Are you sure we're good?
- Always.
-- Rory and Lorelai
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-20 8:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-19 15:37 checkout @{-1} bug/oddity Adeodato Simó
2009-04-19 20:36 ` Thomas Rast
2009-04-20 8:16 ` Adeodato Simó
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.