Skip to contentSkip to conversation

git and tags...

DISCUSSION Franck 3 participants 7 messages Nov 8, 2005 – Nov 9, 2005 MIPS

lore
Share & tools
lore

Franck

author
#0 lore raw

Hi,

I'm trying to retrieve a linux kernel by tag using git. Let's say for example I want my working tree to be a linux 2.6.12 copy from git repository. How can I do that ?

I tried these commands but it seems that there's no tag in git repository

git clone rsync://ftp.linux-mips.org/git/linux.git linux.git git pull http://www.linux-mips.org/pub/scm/linux.git tag linux_2_6_12

Thanks
--
Franck

#1 lore raw
Quoted 8 lines · Franck

I'm trying to retrieve a linux kernel by tag using git. Let's say for example I want my working tree to be a linux 2.6.12 copy from git repository. How can I do that ?

I tried these commands but it seems that there's no tag in git repository

git clone rsync://ftp.linux-mips.org/git/linux.git linux.git git pull http://www.linux-mips.org/pub/scm/linux.git tag linux_2_6_12

ls .git/refs/tags to see the tag names.

Ralf

author
#2 lore raw

2005/11/8, Ralf Baechle <[email protected]>:

Quoted 6 lines · Franck
Quoted 5 lines

I'm trying to retrieve a linux kernel by tag using git. Let's say for example I want my working tree to be a linux 2.6.12 copy from git repository. How can I do that ?

Quoted 7 lines
Quoted 4 lines

I tried these commands but it seems that there's no tag in git repository

git clone rsync://ftp.linux-mips.org/git/linux.git linux.git git pull http://www.linux-mips.org/pub/scm/linux.git tag linux_2_6_12

ls .git/refs/tags to see the tag names.

OK, so tags have been renamed into "linux-2.6.x". Why not using the same mainline name convention (v2.6.x) ?

I have another question (which is the first one in my previous email), how can I make my working tree a kernel version 2.6.9 for example ?

And the last question related to mips git repository, why does kernel v2.2, v2.4, v2.6 are in the same repository ? Why not seperate different major version of the kernel in a seperate repository ?

Thanks
--
Franck

#3 lore raw
Quoted 2 lines · Franck

OK, so tags have been renamed into "linux-2.6.x". Why not using the same mainline name convention (v2.6.x) ?

The same reason that some people like blue and others prefer green ;-)

Quoted 2 lines

I have another question (which is the first one in my previous email), how can I make my working tree a kernel version 2.6.9 for example ?

git-read-tree $(cat .git/refs/tags/linux-2.6.9)
git-checkout-index -f -a -u -q

Quoted 3 lines

And the last question related to mips git repository, why does kernel v2.2, v2.4, v2.6 are in the same repository ? Why not seperate different major version of the kernel in a seperate repository ?

The extra space consumption for all these historic versions in a compressed git repository is extremly little.

Ralf

#4 lore raw
Quoted 5 lines · Ralf Baechle
Quoted 2 lines · Franck

OK, so tags have been renamed into "linux-2.6.x". Why not using the same mainline name convention (v2.6.x) ?

Quoted 7 lines

The same reason that some people like blue and others prefer green ;-)

Quoted 2 lines

I have another question (which is the first one in my previous email), how can I make my working tree a kernel version 2.6.9 for example ?

git-read-tree $(cat .git/refs/tags/linux-2.6.9)
git-checkout-index -f -a -u -q

IIUC, this is just "git checkout linux-2.6.9" nowadays.

Signature · 2 lines
Daniel Jacobowitz
CodeSourcery, LLC
author
#6 lore raw
In reply to Ralf Baechle

2005/11/8, Ralf Baechle <[email protected]>:

Quoted 7 lines · Franck
Quoted 3 lines

OK, so tags have been renamed into "linux-2.6.x". Why not using the same mainline name convention (v2.6.x) ?

The same reason that some people like blue and others prefer green ;-)

yet, mips branch follows mainline coding style...Actually it's just more convenient to remember only one tag name convention. Anyways....

Quoted 6 lines
Quoted 2 lines

I have another question (which is the first one in my previous email), how can I make my working tree a kernel version 2.6.9 for example ?

git-read-tree $(cat .git/refs/tags/linux-2.6.9)
git-checkout-index -f -a -u -q

thanks for that

Quoted 7 lines
Quoted 3 lines

And the last question related to mips git repository, why does kernel v2.2, v2.4, v2.6 are in the same repository ? Why not seperate different major version of the kernel in a seperate repository ?

The extra space consumption for all these historic versions in a compressed git repository is extremly little.

hmm...still I get:

# du linux-mips.git/.git
263M
# du linux-mainline.git/.git
104M

Thanks
--
Franck

author
#5 lore raw
In reply to Daniel Jacobowitz

2005/11/8, Daniel Jacobowitz <[email protected]>:

Quoted 8 lines · Ralf Baechle
Quoted 7 lines · Franck
Quoted 3 lines

OK, so tags have been renamed into "linux-2.6.x". Why not using the same mainline name convention (v2.6.x) ?

The same reason that some people like blue and others prefer green ;-)

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

I have another question (which is the first one in my previous email), how can I make my working tree a kernel version 2.6.9 for example ?

git-read-tree $(cat .git/refs/tags/linux-2.6.9)
git-checkout-index -f -a -u -q

IIUC, this is just "git checkout linux-2.6.9" nowadays.

"checkout" command seems to work with branch, not tag. Which version of git are you using ?

Thanks
--
Franck