desktop / dugite

Elegant bindings for working with Git in your Node applications
MIT License
462 stars 149 forks source link

Add function to parse bad config value error info #558

Closed sergiou87 closed 7 months ago

sergiou87 commented 7 months ago

As mentioned in https://github.com/desktop/desktop/pull/18292#discussion_r1521722027, the function parseBadConfigValueErrorInfo extracts the name of parameter and its value from git errors.

I intended to write it as an independent function, but then I noticed parseError was a public static function in GitProcess and decided to do the same.