1[
2  {
3    "cmd": [
4      "python",
5      "-u",
6      "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
7      "--path",
8      "[START_DIR]/src",
9      "--url",
10      "https://chromium.googlesource.com/chromium/src.git"
11    ],
12    "name": "git setup"
13  },
14  {
15    "cmd": [
16      "git",
17      "fetch",
18      "origin",
19      "master",
20      "--recurse-submodules",
21      "--progress"
22    ],
23    "cwd": "[START_DIR]/src",
24    "env": {
25      "PATH": "RECIPE_REPO[depot_tools]:<PATH>"
26    },
27    "infra_step": true,
28    "name": "git fetch"
29  },
30  {
31    "cmd": [
32      "git",
33      "checkout",
34      "-f",
35      "FETCH_HEAD"
36    ],
37    "cwd": "[START_DIR]/src",
38    "infra_step": true,
39    "name": "git checkout"
40  },
41  {
42    "cmd": [
43      "git",
44      "rev-parse",
45      "HEAD"
46    ],
47    "cwd": "[START_DIR]/src",
48    "infra_step": true,
49    "name": "read revision",
50    "~followup_annotations": [
51      "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@"
52    ]
53  },
54  {
55    "cmd": [
56      "git",
57      "clean",
58      "-f",
59      "-d",
60      "-x"
61    ],
62    "cwd": "[START_DIR]/src",
63    "infra_step": true,
64    "name": "git clean"
65  },
66  {
67    "cmd": [
68      "git",
69      "submodule",
70      "sync"
71    ],
72    "cwd": "[START_DIR]/src",
73    "infra_step": true,
74    "name": "submodule sync"
75  },
76  {
77    "cmd": [
78      "git",
79      "submodule",
80      "update",
81      "--init",
82      "--recursive"
83    ],
84    "cwd": "[START_DIR]/src",
85    "infra_step": true,
86    "name": "submodule update"
87  },
88  {
89    "cmd": [
90      "git",
91      "-c",
92      "foo=bar",
93      "count-objects",
94      "-v"
95    ],
96    "cwd": "[START_DIR]/src",
97    "infra_step": true,
98    "name": "count-objects"
99  },
100  {
101    "cmd": [
102      "git",
103      "config",
104      "--get",
105      "remote.origin.url"
106    ],
107    "cwd": "[START_DIR]/src",
108    "infra_step": true,
109    "name": "git config remote.origin.url",
110    "~followup_annotations": [
111      "@@@STEP_TEXT@foo@@@"
112    ]
113  },
114  {
115    "cmd": [
116      "git",
117      "show",
118      "HEAD",
119      "--format=%at",
120      "-s"
121    ],
122    "cwd": "[START_DIR]/src",
123    "infra_step": true,
124    "name": "git show"
125  },
126  {
127    "cmd": [
128      "git",
129      "fetch",
130      "origin",
131      "--tags"
132    ],
133    "cwd": "[START_DIR]/src",
134    "infra_step": true,
135    "name": "git fetch tags"
136  },
137  {
138    "cmd": [
139      "git",
140      "status"
141    ],
142    "cwd": "[START_DIR]/src",
143    "infra_step": true,
144    "name": "git status"
145  },
146  {
147    "cmd": [
148      "git",
149      "status"
150    ],
151    "cwd": "[START_DIR]/src",
152    "infra_step": true,
153    "name": "git status can_fail_build"
154  },
155  {
156    "cmd": [
157      "git",
158      "status"
159    ],
160    "cwd": "[START_DIR]/src",
161    "infra_step": true,
162    "name": "git status cannot_fail_build"
163  },
164  {
165    "cmd": [
166      "git",
167      "new-branch",
168      "refactor"
169    ],
170    "cwd": "[START_DIR]/src",
171    "env": {
172      "PATH": "RECIPE_REPO[depot_tools]:<PATH>"
173    },
174    "infra_step": true,
175    "name": "git new-branch refactor"
176  },
177  {
178    "cmd": [
179      "git",
180      "new-branch",
181      "feature",
182      "--upstream",
183      "refactor"
184    ],
185    "cwd": "[START_DIR]/src",
186    "env": {
187      "PATH": "RECIPE_REPO[depot_tools]:<PATH>"
188    },
189    "infra_step": true,
190    "name": "git new-branch feature"
191  },
192  {
193    "cmd": [
194      "git",
195      "rebase",
196      "origin/master"
197    ],
198    "cwd": "[START_DIR]/src",
199    "infra_step": true,
200    "name": "my repo rebase"
201  },
202  {
203    "cmd": [
204      "git",
205      "bundle",
206      "create",
207      "[START_DIR]/all.bundle",
208      "--all"
209    ],
210    "cwd": "[START_DIR]/src",
211    "infra_step": true,
212    "name": "git bundle"
213  },
214  {
215    "name": "$result"
216  }
217]