Skip to content

Commit ec7d59d

Browse files
authored
Merge pull request #458 from analytically/feature/fetch
Docs: Add missing 'fetch' parameter to in_schema.json and document it
2 parents a53ebaa + 3b2d287 commit ec7d59d

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,43 @@ correct key is provided set in `git_crypt_key`.
402402
the repository.
403403
</td>
404404
</tr>
405+
<tr>
406+
<td><code>fetch</code><br/><i>Optional</i></td>
407+
<td>
408+
Additional branches to fetch and make available in the cloned repository.
409+
This is useful when you need to perform operations like rebasing or
410+
merging with branches other than the one being checked out.
411+
<br/><br/>
412+
Specify as a list of branch names. Each branch will be fetched from
413+
origin and made available as a local branch.
414+
<br/><br/>
415+
<strong>Example:</strong> Fetching additional branches for rebasing
416+
<pre>
417+
- get: source-code
418+
params:
419+
fetch:
420+
- develop
421+
- main
422+
- feature/experimental
423+
</pre>
424+
After the <code>get</code> step completes, you can perform operations
425+
like:
426+
<pre>
427+
- task: rebase-on-main
428+
config:
429+
platform: linux
430+
inputs:
431+
- name: source-code
432+
run:
433+
path: sh
434+
args:
435+
- -exc
436+
- |
437+
cd source-code
438+
git rebase main
439+
</pre>
440+
</td>
441+
</tr>
405442
<tr>
406443
<td><code>fetch_tags</code><br/><i>Optional</i></td>
407444
<td>

assets/in_schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"depth": "",
3+
"fetch": "",
34
"fetch_tags": "",
45
"submodules": "",
56
"submodule_recursive": "",

0 commit comments

Comments
 (0)