Home
last modified time | relevance | path

Searched refs:git (Results 1 – 25 of 41) sorted by relevance

12

/tools/treble/build/treble_build/local/
Dgit.go44 git gitExec // Git executable member
58 if raw, err := cli.git.ProjectInfo(ctx, gitDir, workDir); err == nil {
78 if raw, err := cli.git.RemoteUrl(ctx, gitDir, workDir, remote); err == nil {
90 if raw, err := cli.git.Tree(ctx, proj.GitDir, proj.WorkDir, proj.Revision); err == nil {
99 …if diff, err := cli.git.DiffBranches(ctx, proj.GitDir, proj.WorkDir, upstream, proj.Revision); err…
119 raw, err := cli.git.CommitInfo(ctx, proj.GitDir, proj.WorkDir, sha)
218 func (git *gitCmd) runDirCmd(ctx context.Context, gitDir string, workDir string, args []string) (*b…
220 out, err, _ := run(ctx, git.timeout, git.cmd, gitArgs)
222 …return nil, errors.New(fmt.Sprintf("Failed to run %s %s [error %s]", git.cmd, strings.Join(gitArgs…
227 func (git *gitCmd) ProjectInfo(ctx context.Context, gitDir, workDir string) (*bytes.Buffer, error) {
[all …]
Dgit_test.go140 git := &gitCli{git: &gitTestCli{
147 proj, err := git.Project(nil, test.path, test.gitDir, test.remote, test.revision)
152 _ = git.PopulateFiles(nil, proj, "")
158 c, err := git.CommitInfo(nil, proj, test.commit.sha)
/tools/metalava/scripts/
Dmerge-from-metalava-main.sh9 STATUS=$(git status -s | grep -v "??" || true)
21 BRANCH=$(git branch --show-current)
32 CURRENT_BRANCH=$(git rev-parse --abbrev-ref --symbolic-full-name @{u})
51 output_only_on_failure git fetch ${SPLIT_REPOSITORY_BRANCH}
55 MERGE_BASE=$(git merge-base HEAD ${SOURCE_BRANCH})
56 if [[ ${MERGE_BASE} == $(git rev-parse ${SOURCE_BRANCH}) ]]; then
64 BUGS=$(git log ${MERGE_BASE}..${SOURCE_BRANCH} --no-merges | (grep -E "^ *Bug: *[0-9]+" || true) | …
72 CHANGE_IDS=$(git log ${MERGE_BASE}..${SOURCE_BRANCH} --no-merges | (grep -E "^ *Change-Id: I*[0-9a-…
109 output_only_on_failure git merge ${SOURCE_BRANCH} --no-ff -F ${MESSAGE_FILE}
/tools/repohooks/rh/
Dhooks_unittest.py102 [rh.git.RawDiffEntry(file=x)
115 @mock.patch.object(rh.git, 'find_repo_root',
179 @mock.patch.object(rh.git, 'find_repo_root')
186 @mock.patch.object(rh.git, 'find_repo_root')
337 diff = [rh.git.RawDiffEntry(file=x) for x in files]
363 diff = [rh.git.RawDiffEntry(file=x) for x in files]
382 diff = [rh.git.RawDiffEntry(file='Android.bp')]
409 diff = [rh.git.RawDiffEntry(file='foo.java'),
410 rh.git.RawDiffEntry(file='bar.kt'),
411 rh.git.RawDiffEntry(file='baz/blah.java')]
[all …]
Dhooks.py31 import rh.git
144 return rh.git.find_repo_root()
149 return rh.git.find_repo_root(outer=True)
362 data = rh.git.get_file_content(commit, d.file)
379 input=rh.git.get_patch(commit))
891 data = rh.git.get_file_content(commit, d.file)
911 data = rh.git.get_file_content(commit, d.file)
960 data = rh.git.get_file_content(commit, d.file)
1049 data = rh.git.get_file_content(commit, d.file)
/tools/repohooks/
Dpre-upload.py48 import rh.git
251 global_paths = (rh.git.find_repo_root(),)
255 (os.path.join(rh.git.find_repo_root(), '.repo', 'manifests')),
257 rh.git.find_repo_root(),
371 remote = rh.git.get_upstream_remote()
372 upstream_branch = rh.git.get_upstream_branch()
379 rel_proj_dir = os.path.relpath(proj_dir, rh.git.find_repo_root())
387 'REPO_LREV': rh.git.get_commit_for_ref(upstream_branch),
391 'REPO_RREV': rh.git.get_remote_revision(upstream_branch, remote),
395 commit_list = rh.git.get_commits(
[all …]
DREADME.md32 * Project-local settings (e.g. a single .git repo). These control settings for
41 * `.repo/manifests/GLOBAL-PREUPLOAD.cfg`: The manifest git repo.
42 Simply check this in to the manifest git repo and you're done.
52 This file is checked in the top of a specific git repository. Stacking them
79 Hooks are executed in the top directory of the git repository. All paths should
88 * `REPO_REMOTE`: The name of the git remote.
185 * `clang_format`: Run git-clang-format against the commit. The default style is
285 * `git-clang-format`: used for the `clang_format` builtin hook.
299 # Or paths relative to the top of the git project.
/tools/treble/hacksaw/
DREADME.md7 If you have a large multi-gigabyte codebase spread out through multiple git projects it can take a …
8 lets you split off a clean workspace in seconds. It does so by only copying git projects that you
31 the git projects checked out for editing. Contrast that with how long it takes
97 go get android.googlesource.com/platform/tools/treble.git/hacksaw/cmd/hacksaw
110 Hacksaw creates bind mounts for all git projects in a codebase. It then
134 go get android.googlesource.com/platform/tools/treble.git/hacksaw/cmd/hacksawd
137 sudo ~/go/src/android.googlesource.com/platform/tools/treble.git/hacksaw/scripts/install-service.sh
146 sudo ~/go/src/android.googlesource.com/platform/tools/treble.git/hacksaw/scripts/uninstall-service.…
152 Except for projects that you are currently editing. Those will require you to `git pull`
167 So at the moment you can only upload to Gerrit [using git
[all …]
Dgo.mod1 module android.googlesource.com/platform/tools/treble.git/hacksaw
/tools/aadevtools/dev/
Dclone_proj.sh56 git clone "$GIT_REPO_URL/$PROJECT"
59 git clone -b $BRANCH "$GIT_REPO_URL/$PROJECT"
64 f=`git rev-parse --git-dir`/hooks/commit-msg ; mkdir -p $(dirname $f) ; curl -Lo $f https://gerrit-…
/tools/platform-compat/hiddenapi/
Dchecksorted_sha.sh4 git show --name-only --pretty=format: $1 | grep "hiddenapi/hiddenapi-.*txt" | while read file; do
5 diff <(git show $1:$file) <(git show $1:$file | $LOCAL_DIR/sort_api.sh ) || {
/tools/netsim/guide/src/development/
DREADME.md208 git diff HEAD^ > /tmp/git.diff
210 git apply /tmp/git.diff
218 git add <files>
219 git commit
225 git add <files>
226 git commit --amend --no-edit
/tools/netsim/scripts/
Dproto_update.sh54 git checkout $REPO/rust/proto/src/packet_streamer.rs
55 git checkout $REPO/rust/proto/src/frontend.rs
71 git checkout $CARGO
/tools/external_updater/
DREADME.md75 If type of a URL is set to GIT, the URL must be a git upstream
76 (the one you can use with `git clone`). And the version field must
80 When upgrade, the tool will simply run `git merge tag/sha`.
117 If you have the choice between archives and git tags, choose tags.
160 repo forall -c git checkout .
161 repo forall -c git clean -xdf
/tools/metalava/
DDOWNLOADING.md11 curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
18 git config --global user.name "Your Name"
19 git config --global user.email "you@example.com"
DAPI-LINT.md83 Then re-run the build and you should now see diffs to the baseline file; git
86 $ git status
89 (use "git add <file>..." to include in what will be committed)
/tools/tradefederation/core/
Daosp_sha.sh4 if git branch -vv | grep -q -P "^\*[^\[]+\[aosp/"; then
16 done < <(git show --name-only --pretty=format: $1 | grep -- "$2")
/tools/aadevtools/dev/resource/
Dsysui_gcar_android10-qpr3-release_android11-release.txt22 git diff --stat remotes/aosp/android10-qpr3-release remotes/aosp/android11-release -- `find . -name…
102 git diff --stat remotes/aosp/android10-qpr3-release remotes/aosp/android11-release -- `find . -name…
157 git diff --stat remotes/aosp/android10-qpr3-release remotes/aosp/android11-release -- `find . -name…
189 git diff --stat remotes/aosp/android10-qpr3-release remotes/aosp/android11-release -- `find . -name…
222 git diff --stat remotes/aosp/android10-qpr3-release remotes/aosp/android11-release -- `find . -name…
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DSymlinkTest.kt51 val git = File(file, ".git").toPath() in <lambda>() constant
52 java.nio.file.Files.createSymbolicLink(git, dir.toPath()) in <lambda>()
DBaselineTest.kt156 val git = File(file, ".git").toPath() in <lambda>() constant
157 java.nio.file.Files.createSymbolicLink(git, dir.toPath()) in <lambda>()
/tools/aadevtools/
DREADME.md20 * clone_proj.sh to clone a git project for the unbundled development workflows
27 This is useful when the git commit history is somehow not obtainable. What you
33 .git, etc.
/tools/repohooks/tools/
Dandroid_test_mapping_format.py40 import rh.git
185 json_data = rh.git.get_file_content(opts.commit, filename)
/tools/currysrc/scripts/
Drepackage-common.sh175 …(cd $SRC_OUT_DIR; git checkout HEAD $(git status --short | grep -E "^ D .*/TEST_MAPPING$" | cut -c…
/tools/treble/hacksaw/git/
Dlister.go15 package git package
/tools/treble/build/treble_build/app/
DAndroid.bp8 "git.go",

12