Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List all tags within a module in CVS in CLI

Is it possible to get a list of all generated tags for a given module in CVS?

I can use

cvs status -v FILE

but it shows too much information that I just don't need. I can use some gui utilities that show me only the tag names (Eclipse is one of them), how do they do it? You need to do some "hacks" or are just parameters I'm unaware of?

I would like to know if there's a command that would show me just something like this on terminal:

TAG1
TAG2
TAG3
TAG4
like image 801
Somebody still uses you MS-DOS Avatar asked Jun 29 '10 19:06

Somebody still uses you MS-DOS


1 Answers

In bash

cvs -q status -R -v | cut -d' ' -f1 | sort -u

or

cvs -q status -v FILE | cut -d' ' -f1 | sort -u

like image 124
Dennis Bernaerts Avatar answered Oct 14 '22 14:10

Dennis Bernaerts