Re: What's in git.git

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

Re: What's in git.git

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:22

merlyn@stonehenge.com (Randal L. Schwartz) writes:
For example, I can do this:

$ git-checkout next
$ cp git-cvsimport.perl DUMMY
$ git-checkout -b my-playground
$ mv DUMMY git-cvsimport.perl
$ git-commit -a -m 'trying that other version'

But this wastes a commit.  Is there any way to get an index that simply
includes the file from that other branch?
        $ git checkout master
        $ git checkout next git-cvsimport.perl

Re: What's in git.git

From: Randal L. Schwartz <hidden>
Date: 2016-06-15 22:42:22

quoted
quoted
quoted
quoted
"Junio" == Junio C Hamano [off-list ref] writes:
quoted
But this wastes a commit.  Is there any way to get an index that simply
includes the file from that other branch?
Junio>         $ git checkout master
Junio>         $ git checkout next git-cvsimport.perl

Yow.  How simple is *that*?  Thanks.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[off-list ref] <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help