theactiveactor
theactiveactor

Reputation: 7554

How to display available branches in Android source tree?

Following directions on Android's main website to pull down sources, I'm looking at this command to initialize repo for the cupcake branch:

repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake

How can I view all available branches besides cupcake, i.e eclair, donut, etc...?

Upvotes: 35

Views: 32574

Answers (6)

Tzunghsing David Wong
Tzunghsing David Wong

Reputation: 1414

Assuming at the top of an AOSP tree, a list of tags can be shown either,

$ git --git-dir .repo/manifests.git tag -l

or

$ (cd .repo/manifests; git tag -l; )

Upvotes: 0

Volker Voecking
Volker Voecking

Reputation: 5583

It doesn't seem to be possible using the "repo" script, but you can query the list of available branches using git:

$ git clone https://android.googlesource.com/platform/manifest.git
$ cd manifest
$ git branch -r

If you don't want to clone the repository just for this, you can see the branches on the web interface.

Upvotes: 29

alijandro
alijandro

Reputation: 12157

For the repository you have perform repo sync. You can find them in your local directory .repo/manifests. Suppose you check aosp to ~/aosp.

$ cd ~/aosp/.repo/manifests
$ git branch -r

Upvotes: 3

Łukasz Sromek
Łukasz Sromek

Reputation: 3687

The quickest way to list available branches without cloning/downloading anything is this one-liner:

$ git ls-remote -h https://android.googlesource.com/platform/manifest.git

Upvotes: 37

Michal Vojtíšek
Michal Vojtíšek

Reputation: 61

See list of "Codenames, Tags, and Build Numbers" at http://source.android.com/source/build-numbers.html

git access is refused

Upvotes: 6

Mark Renouf
Mark Renouf

Reputation: 31000

The manifests are already checked out as part of the repo init process. To get a list of available branches, (from your android repo checkout root), use this command:

git --git-dir .repo/manifests/.git/ branch -a

Upvotes: 18

Related Questions