index.js
function( url, options, callback ) {
	if ( typeof options === "function" ) {
		callback = options;
		options = null;
	}
	options = options || {};
	var tagsUrl = parseUrl( url ).tagsUrl;
	list( tagsUrl, options, function( err, data ) {
		var result = [];
		if ( !err && data && data.list && data.list.entry ) {
			if ( Array.isArray( data.list.entry ) ) {
				result = data.list.entry.filter( function( entry ) {
						return entry && entry.$ && entry.$.kind === "dir";
					} );
			} else {
				if ( data.list.entry.$ && data.list.entry.$.kind === "dir" ) {
					result = [ data.list.entry ];
				}
			}
		}
		callback( err, result );
	} );
}
function( url, options, callback ) {
	if ( typeof options === "function" ) {
		callback = options;
		options = null;
	}
	options = options || {};
	var tagsUrl = parseUrl( url ).tagsUrl;
	list( tagsUrl, options, function( err, data ) {
		var result = [];
		if ( !err && data && data.list && data.list.entry ) {
			if ( Array.isArray( data.list.entry ) ) {
				result = data.list.entry.filter( function( entry ) {
						return entry && entry.$ && entry.$.kind === "dir";
					} );
			} else {
				if ( data.list.entry.$ && data.list.entry.$.kind === "dir" ) {
					result = [ data.list.entry ];
				}
			}
		}
		callback( err, result );
	} );
}
function ( url , options , callback ) { if ( typeof options === "function" ) { callback = options ; options = null ; } options = options || { } ; var tagsUrl = parseUrl ( url ) . tagsUrl ; list ( tagsUrl , options , function ( err , data ) { var result = [ ] ; if ( ! err && data && data . list && data . list . entry ) { if ( Array . isArray ( data . list . entry ) ) { result = data . list . entry . filter ( function ( entry ) { return entry && entry . $ && entry . $ . kind === "dir" ; } ) ; } else { if ( data . list . entry . $ && data . list . entry . $ . kind === "dir" ) { result = [ data . list . entry ] ; } } } callback ( err , result ) ; } ) ; }
Gets all available tags for the given svn URL
@function getTags
@memberof util
@param {string} url - Project URL to get tags for
@param {object} [options] - Options object
@param {function} [callback] - Complete callback
Gets all available tags for the given svn URL