From: Oleg Broytman Date: Fri, 15 Apr 2016 15:20:20 +0000 (+0300) Subject: List repositories with "Unnamed" description and edit their descriptions X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b654a68370a9f85db9e898521bd2925e62f578d7;p=git-scripts.git List repositories with "Unnamed" description and edit their descriptions --- diff --git a/edit-description b/edit-description new file mode 100755 index 0000000..547b248 --- /dev/null +++ b/edit-description @@ -0,0 +1,5 @@ +#! /bin/sh + +exec "`dirname \"$0\"`"/do-all \ + 'test "`cat $g/description`" = "Unnamed repository; edit this file '"'"description"'"' to name the repository." && + "${VISUAL:-${EDITOR:-vi}}" "$g"/description < /dev/tty' diff --git a/ls-no-description b/ls-no-description new file mode 100755 index 0000000..0966ffb --- /dev/null +++ b/ls-no-description @@ -0,0 +1,4 @@ +#! /bin/sh + +exec "`dirname \"$0\"`"/do-all \ + 'test "`cat $g/description`" = "Unnamed repository; edit this file '"'"description"'"' to name the repository." && echo "$d"'