OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env bash |
| 2 . demo_repo.sh |
| 3 |
| 4 silent git push origin refs/remotes/origin/master:refs/branch-heads/9999 |
| 5 silent git config --add remote.origin.fetch \ |
| 6 +refs/branch-heads/*:refs/remotes/branch-heads/* |
| 7 silent git fetch origin |
| 8 |
| 9 silent git checkout -b master origin/master |
| 10 add modified_file |
| 11 set_user some.committer |
| 12 c "This change needs to go to branch 9999" |
| 13 silent git tag pick_commit |
| 14 |
| 15 comment Before working with branches, you must \'gclient sync \ |
| 16 --with_branch_heads\' at least once to fetch the branches. |
| 17 |
| 18 set_user branch.maintainer |
| 19 tick 1000 |
| 20 |
| 21 run git log -n 1 --pretty=fuller |
| 22 run git checkout -b drover_9999 branch-heads/9999 |
| 23 echo "# DO NOT leave off the '-x' flag" |
| 24 run git cherry-pick -x $(git show-ref -s pick_commit) |
| 25 run git log -n 1 --pretty=fuller |
| 26 pcommand git cl upload |
| 27 echo "# Get LGTM or TBR." |
| 28 run git cl land |
OLD | NEW |