From: Oleg Broytman Date: Sat, 7 Sep 2024 10:31:26 +0000 (+0300) Subject: Feat(update-remotes): Use `git config --get-all` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=17122f33d0011656e73440bb88ded051ad2feed1;p=git-scripts.git Feat(update-remotes): Use `git config --get-all` Use `git config --add` to add to the list. This allows to add/remove without copying the entire list. --- diff --git a/update-remotes b/update-remotes index 05ce939..5237db9 100755 --- a/update-remotes +++ b/update-remotes @@ -5,8 +5,8 @@ current="`git config --get --path remote.current.url`" || : origin="`git config --get --path remote.origin.url`" || : web="`git config --get --path remote.web.url`" || : remotes="`git config --get update-remotes.remotes`" || : -branches="`git config --get update-remotes.branches`" || : -files="`git config --get update-remotes.files`" || : +branches="`git config --get-all update-remotes.branches`" || : +files="`git config --get-all update-remotes.files`" || : if [ -n "$origin" ]; then if [ -n "$current" ]; then