chiark / gitweb /
cvs-list-tags: New script to (try to) list all tags in a CVS repository.
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Wed, 13 Nov 2002 11:38:55 +0000 (11:38 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Wed, 13 Nov 2002 11:38:55 +0000 (11:38 +0000)
cvs-list-tags [new file with mode: 0755]

diff --git a/cvs-list-tags b/cvs-list-tags
new file mode 100755 (executable)
index 0000000..74d8507
--- /dev/null
@@ -0,0 +1,7 @@
+#! /bin/sh
+# List all the tags available for all files in a CVS working copy.
+# This is an ugly hack. It should more or less work, though.
+cvs status -vR 2>/dev/null | \
+       grep '(revision:' | \
+       sed 's/[[:space:]]*\([^[:space:]]*\).*/\1/' | \
+       sort -u