关于下载android源码目录树的疑问

springsnds 发布于 2012/03/06 12:46
阅读 2K+
收藏 0

我是指定gingerbread源码下载的,可是为什么下载目录里却有4.0、2.2等版本的呢?其部分目录如下:

* [new branch]      master     -> aosp/master
 * [new branch]      gingerbread-release -> aosp/gingerbread-release
 * [new branch]      gingerbread-mr4-release -> aosp/gingerbread-mr4-release
 * [new branch]      gingerbread -> aosp/gingerbread
 * [new branch]      froyo-release -> aosp/froyo-release
 * [new branch]      froyo      -> aosp/froyo
 * [new branch]      eclair-sholes-release2 -> aosp/eclair-sholes-release2
 * [new branch]      eclair-sholes-release -> aosp/eclair-sholes-release
 * [new branch]      eclair-release -> aosp/eclair-release
 * [new branch]      eclair-passion-release -> aosp/eclair-passion-release
 * [new branch]      donut-release2 -> aosp/donut-release2
 * [new branch]      donut-release -> aosp/donut-release
 * [new tag]         android-2.3_r1 -> android-2.3_r1
 * [new tag]         android-2.3.7_r1 -> android-2.3.7_r1
 * [new tag]         android-2.3.6_r1 -> android-2.3.6_r1
 * [new tag]         android-2.3.6_r0.9 -> android-2.3.6_r0.9
 * [new tag]         android-2.3.5_r1 -> android-2.3.5_r1
 * [new tag]         android-2.3.4_r1 -> android-2.3.4_r1
 * [new tag]         android-2.3.4_r0.9 -> android-2.3.4_r0.9
 * [new tag]         android-2.3.3_r1.1 -> android-2.3.3_r1.1
 * [new tag]         android-2.3.3_r1 -> android-2.3.3_r1
 * [new tag]         android-2.3.2_r1 -> android-2.3.2_r1
 * [new tag]         android-2.3.1_r1 -> android-2.3.1_r1
 * [new tag]         android-2.2_r1.3 -> android-2.2_r1.3
 * [new tag]         android-2.2_r1.2 -> android-2.2_r1.2
 * [new tag]         android-2.2_r1.1 -> android-2.2_r1.1
 * [new tag]         android-2.2_r1 -> android-2.2_r1
 * [new tag]         android-2.2.2_r1 -> android-2.2.2_r1
 * [new tag]         android-2.2.1_r2 -> android-2.2.1_r2
 * [new tag]         android-2.2.1_r1 -> android-2.2.1_r1
 * [new tag]         android-2.1_r2.1s -> android-2.1_r2.1s
 * [new tag]         android-2.1_r2.1p2 -> android-2.1_r2.1p2
 * [new tag]         android-2.1_r2.1p -> android-2.1_r2.1p
 * [new tag]         android-2.1_r2 -> android-2.1_r2
 * [new tag]         android-2.1_r1 -> android-2.1_r1
 * [new tag]         android-2.0_r1 -> android-2.0_r1
 * [new tag]         android-2.0.1_r1 -> android-2.0.1_r1
 * [new tag]         android-1.6_r2 -> android-1.6_r2
 * [new tag]         android-1.6_r1.5 -> android-1.6_r1.5
 * [new tag]         android-1.6_r1.4 -> android-1.6_r1.4
 * [new tag]         android-1.6_r1.3 -> android-1.6_r1.3
 * [new tag]         android-1.6_r1.2 -> android-1.6_r1.2
 * [new tag]         android-1.6_r1.1 -> android-1.6_r1.1
 * [new tag]         android-1.6_r1 -> android-1.6_r1
remote: Counting objects: 255, done
remote: Finding sources: 100% (135/135)
remote: Getting sizes: 100% (145/145)
remote: Compressing objects: 100% (25/25)
remote: Total 135 (delta 71), reused 133 (delta 70)
Receiving objects: 100% (135/135), 15.60 MiB | 1.12 MiB/s, done.
Resolving deltas: 100% (71/71), completed with 46 local objects.
From https://android.googlesource.com/platform/prebuilt
 * [new branch]      ics-factoryrom-2-release -> aosp/ics-factoryrom-2-release
 * [new branch]      ics-mr0    -> aosp/ics-mr0
 * [new branch]      ics-mr0-release -> aosp/ics-mr0-release
 * [new branch]      ics-mr1    -> aosp/ics-mr1
 * [new branch]      ics-mr1-release -> aosp/ics-mr1-release
   367f94c..23c0639  master     -> aosp/master
 * [new tag]         android-2.2.3_r1 -> android-2.2.3_r1
 * [new tag]         android-2.2.3_r2 -> android-2.2.3_r2
 * [new tag]         android-4.0.1_r1 -> android-4.0.1_r1
 * [new tag]         android-4.0.1_r1.1 -> android-4.0.1_r1.1
 * [new tag]         android-4.0.1_r1.2 -> android-4.0.1_r1.2
 * [new tag]         android-4.0.2_r1 -> android-4.0.2_r1
 * [new tag]         android-4.0.3_r1 -> android-4.0.3_r1
 * [new tag]         android-cts-2.2_r8 -> android-cts-2.2_r8
 * [new tag]         android-cts-2.3_r10 -> android-cts-2.3_r10
 * [new tag]         android-cts-2.3_r11 -> android-cts-2.3_r11
 * [new tag]         android-cts-2.3_r12 -> android-cts-2.3_r12
 * [new tag]         android-cts-4.0_r1 -> android-cts-4.0_r1
 * [new tag]         android-cts-verifier-4.0_r1 -> android-cts-verifier-4.0_r1
 * [new tag]         android-sdk-4.0.3-tools_r1 -> android-sdk-4.0.3-tools_r1
 * [new tag]         android-sdk-4.0.3_r1 -> android-sdk-4.0.3_r1
 * [new tag]         android-sdk-adt_r16.0.1 -> android-sdk-adt_r16.0.1

加载中
1
douglarek
douglarek
原理也很简单,git的克隆基于分支的全拷贝,每一次克隆 相当于拥有一个完整的git仓库;另外从git1.7.10后支持单分支拷贝,克隆时跟一个--single的参数
springsnds
springsnds
只是觉得,明明我指定了breach,它却把其他的也下载下来了,这又何苦呢,哪怕很低的git版本也没必要这么做啊
springsnds
springsnds
@Java行者 : 对的,我说的版本号就是分支意思,我明白了,我不知道git的版本更新的那么快,原来我的git已经不是最新的,虽然我是刚用sudo install的~
douglarek
douglarek
@springsnds : 不明白你的版本号是神码意思?是说的android的版本号?你下载的哪个分支,版本就是哪个啊,比如你下载gingerbread,版本肯定是2.3的嘛
douglarek
douglarek
@springsnds : 你虽然使用-b指定了分支,只是说明你当前要工作的分支是那个分支,但是这样依然会有其他的分支拷贝下来,单分支拷贝的特性1.7.10才有,当前1.7.10还处于测试阶段。
springsnds
springsnds
但是我是git是1.7.5.4的,且我用-b 指定gingerbread下载的啊,依然出现帖子中目录树,另外,下载到的源码通过哪个文件可以看到其版本号呢?谢谢~
0
springsnds
springsnds
问题的确太菜了,可我的确有此疑问,有知道的冒个泡啊~~~
douglarek
douglarek
原理也很简单,git的克隆基于分支的全拷贝,每一次克隆 相当于拥有一个完整的git仓库;另外从git1.7.10后支持单分支拷贝,克隆时跟一个--single的参数
返回顶部
顶部