Index: LogCommand.java =================================================================== RCS file: /cvs/javacvs/libsrc/org/netbeans/lib/cvsclient/command/log/LogCommand.java,v retrieving revision 1.25 diff -u -r1.25 LogCommand.java --- LogCommand.java 27 Feb 2002 14:06:27 -0000 1.25 +++ LogCommand.java 20 Jan 2005 05:59:29 -0000 @@ -41,6 +41,11 @@ private String dateFilter; /** + * Holds value of property suppressHeader. + */ + private boolean suppressHeader; + + /** * Holds value of property headerOnly. */ private boolean headerOnly; @@ -110,6 +115,9 @@ if (headerOnly) { requests.add(1, new ArgumentRequest("-h")); //NOI18N } + if (suppressHeader) { + requests.add(1, new ArgumentRequest("-S")); //NOI18IN + } if (noTags) { requests.add(1, new ArgumentRequest("-N")); //NOI18N } @@ -202,6 +210,20 @@ this.headerOnly = headerOnly; } + /** Getter for property suppressHeader, equals the command-line CVS switch "-S". + * @return Value of property suppressHeader. + */ + public boolean isSuppressHeader() { + return suppressHeader; + } + + /** Setter for property headerOnly, equals the command-line CVS switch "-S". + * @param suppressHeader New value of property suppressHeader. + */ + public void setSuppressHeader(boolean suppressHeader) { + this.suppressHeader = suppressHeader; + } + /** Getter for property noTags, equals the command-line CVS switch "-N". * @return Value of property noTags. */ @@ -311,6 +333,9 @@ else if (opt == 't') { setHeaderAndDescOnly(true); } + else if (opt == 'S') { + setSuppressHeader(true); + } else if (opt == 'N') { setNoTags(true); } @@ -338,6 +363,7 @@ setDefaultBranch(false); setHeaderOnly(false); setHeaderAndDescOnly(false); + setSuppressHeader(false); setNoTags(false); setDateFilter(null); setRevisionFilter(null); @@ -349,7 +375,7 @@ * String returned by this method defines which options are available for this particular command */ public String getOptString() { - return "RlbhtNd:r:s:w:"; //NOI18N4 + return "RlbhStNd:r:s:w:"; //NOI18N4 } /** @@ -366,6 +392,9 @@ } if (isHeaderOnly()) { toReturn.append("-h "); //NOI18N + } + if (isSuppressHeader()) { + toReturn.append("-S "); //NOI18N } if (isNoTags()) { toReturn.append("-N "); //NOI18N