]> git.phdru.name Git - git-scripts.git/commitdiff
List repositories with "Unnamed" description and edit their descriptions
authorOleg Broytman <phd@phdru.name>
Fri, 15 Apr 2016 15:20:20 +0000 (18:20 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 15 Apr 2016 15:20:20 +0000 (18:20 +0300)
edit-description [new file with mode: 0755]
ls-no-description [new file with mode: 0755]

diff --git a/edit-description b/edit-description
new file mode 100755 (executable)
index 0000000..547b248
--- /dev/null
@@ -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 (executable)
index 0000000..0966ffb
--- /dev/null
@@ -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"'