amtoine / nu-git-manager

A collection of Nushell tools to manage Git repositories.
GNU General Public License v3.0
26 stars 2 forks source link

collect the output of `git rev-parse` #109

Closed amtoine closed 9 months ago

amtoine commented 9 months ago

from the single commit

this is because git rev-parse streams thus, because it returns a single line, Nushell needs to collect the stream of raw input into a single string. this can be done with lines | get 0, str trim or by wrapping the command in a subexpression.