# Add output variable to Git List Branches

**URL:** <https://www.finalbuilder.com/forums/t/add-output-variable-to-git-list-branches/7044>\
**Category:** Feature Requests\
**Tags:** implemented\
**Created:** [May 19, 2021, 12:10am UTC](https://www.finalbuilder.com/forums/t/add-output-variable-to-git-list-branches/7044 "2021-05-19T00:10:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.finalbuilder.com/forums/u/greg)\
**Post date:** [May 19, 2021, 12:10am UTC](https://www.finalbuilder.com/forums/t/add-output-variable-to-git-list-branches/7044/1 "2021-05-19T00:10:46Z")

</div>

One can set all sorts of options for Git List Branches, but there is no way to cleanly capture the output as a list. I finally resorted to capturing the ouput via Runtime/Logging Properties/Log to Variable and then having to do quite a bit of additional work just to get the branch list. Easy in code, but not so easy via actions.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [May 19, 2021, 12:31am UTC](https://www.finalbuilder.com/forums/t/add-output-variable-to-git-list-branches/7044/2 "2021-05-19T00:31:12Z")

</div>

I’ll upload a new build shorty that will respect the quiet option and not log the commend line or working directory or Success at the end.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [May 19, 2021, 12:47am UTC](https://www.finalbuilder.com/forums/t/add-output-variable-to-git-list-branches/7044/3 "2021-05-19T00:47:02Z")

</div>

This build has the above mentioned change

[https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_2983.exe](https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2983.exe)

---

<div class="post-metadata">

**Author:** ![greg](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.finalbuilder.com/forums/u/greg)\
**Post date:** [May 19, 2021, 4:20pm UTC](https://www.finalbuilder.com/forums/t/add-output-variable-to-git-list-branches/7044/4 "2021-05-19T16:20:29Z")

</div>

New build works as mentioned. Thanks!

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [May 19, 2021, 10:47pm UTC](https://www.finalbuilder.com/forums/t/add-output-variable-to-git-list-branches/7044/5 "2021-05-19T22:47:18Z")

</div>

Closed on May 19, 2021, 10:47pm UTC


