/** * Parse the complete tag message and decode it to a string. * <p> * This method parses and returns the message portion of the tag buffer, * after taking the tag's character set into account and decoding the buffer * using that character set. This method is a fairly expensive operation and * produces a new string on each invocation. * * @return decoded tag message as a string. Never null. */ public final String getFullMessage() { byte[] raw = buffer; int msgB = RawParseUtils.tagMessage(raw, 0); if (msgB < 0) { return ""; //$NON-NLS-1$ } return RawParseUtils.decode(guessEncoding(), raw, msgB, raw.length); }
/** * Parse the tag message and return the first "line" of it. * <p> * The first line is everything up to the first pair of LFs. This is the * "oneline" format, suitable for output in a single line display. * <p> * This method parses and returns the message portion of the tag buffer, * after taking the tag's character set into account and decoding the buffer * using that character set. This method is a fairly expensive operation and * produces a new string on each invocation. * * @return decoded tag message as a string. Never null. The returned string * does not contain any LFs, even if the first paragraph spanned * multiple lines. Embedded LFs are converted to spaces. */ public final String getShortMessage() { byte[] raw = buffer; int msgB = RawParseUtils.tagMessage(raw, 0); if (msgB < 0) { return ""; //$NON-NLS-1$ } int msgE = RawParseUtils.endOfParagraph(raw, msgB); String str = RawParseUtils.decode(guessEncoding(), raw, msgB, msgE); if (RevCommit.hasLF(raw, msgB, msgE)) { str = StringUtils.replaceLineBreaksWithSpace(str); } return str; }
/** * Parse the complete tag message and decode it to a string. * <p> * This method parses and returns the message portion of the tag buffer, * after taking the tag's character set into account and decoding the buffer * using that character set. This method is a fairly expensive operation and * produces a new string on each invocation. * * @return decoded tag message as a string. Never null. */ public final String getFullMessage() { byte[] raw = buffer; int msgB = RawParseUtils.tagMessage(raw, 0); if (msgB < 0) { return ""; //$NON-NLS-1$ } return RawParseUtils.decode(guessEncoding(), raw, msgB, raw.length); }
/** * Parse the complete tag message and decode it to a string. * <p> * This method parses and returns the message portion of the tag buffer, * after taking the tag's character set into account and decoding the buffer * using that character set. This method is a fairly expensive operation and * produces a new string on each invocation. * * @return decoded tag message as a string. Never null. */ public final String getFullMessage() { byte[] raw = buffer; int msgB = RawParseUtils.tagMessage(raw, 0); if (msgB < 0) { return ""; //$NON-NLS-1$ } return RawParseUtils.decode(guessEncoding(), raw, msgB, raw.length); }
/** * Parse the complete tag message and decode it to a string. * <p> * This method parses and returns the message portion of the tag buffer, * after taking the tag's character set into account and decoding the buffer * using that character set. This method is a fairly expensive operation and * produces a new string on each invocation. * * @return decoded tag message as a string. Never null. */ public final String getFullMessage() { byte[] raw = buffer; int msgB = RawParseUtils.tagMessage(raw, 0); if (msgB < 0) { return ""; //$NON-NLS-1$ } return RawParseUtils.decode(guessEncoding(), raw, msgB, raw.length); }
/** * Parse the tag message and return the first "line" of it. * <p> * The first line is everything up to the first pair of LFs. This is the * "oneline" format, suitable for output in a single line display. * <p> * This method parses and returns the message portion of the tag buffer, * after taking the tag's character set into account and decoding the buffer * using that character set. This method is a fairly expensive operation and * produces a new string on each invocation. * * @return decoded tag message as a string. Never null. The returned string * does not contain any LFs, even if the first paragraph spanned * multiple lines. Embedded LFs are converted to spaces. */ public final String getShortMessage() { byte[] raw = buffer; int msgB = RawParseUtils.tagMessage(raw, 0); if (msgB < 0) { return ""; //$NON-NLS-1$ } int msgE = RawParseUtils.endOfParagraph(raw, msgB); String str = RawParseUtils.decode(guessEncoding(), raw, msgB, msgE); if (RevCommit.hasLF(raw, msgB, msgE)) { str = StringUtils.replaceLineBreaksWithSpace(str); } return str; }
/** * Parse the tag message and return the first "line" of it. * <p> * The first line is everything up to the first pair of LFs. This is the * "oneline" format, suitable for output in a single line display. * <p> * This method parses and returns the message portion of the tag buffer, * after taking the tag's character set into account and decoding the buffer * using that character set. This method is a fairly expensive operation and * produces a new string on each invocation. * * @return decoded tag message as a string. Never null. The returned string * does not contain any LFs, even if the first paragraph spanned * multiple lines. Embedded LFs are converted to spaces. */ public final String getShortMessage() { byte[] raw = buffer; int msgB = RawParseUtils.tagMessage(raw, 0); if (msgB < 0) { return ""; //$NON-NLS-1$ } int msgE = RawParseUtils.endOfParagraph(raw, msgB); String str = RawParseUtils.decode(guessEncoding(), raw, msgB, msgE); if (RevCommit.hasLF(raw, msgB, msgE)) { str = StringUtils.replaceLineBreaksWithSpace(str); } return str; }
/** * Parse the tag message and return the first "line" of it. * <p> * The first line is everything up to the first pair of LFs. This is the * "oneline" format, suitable for output in a single line display. * <p> * This method parses and returns the message portion of the tag buffer, * after taking the tag's character set into account and decoding the buffer * using that character set. This method is a fairly expensive operation and * produces a new string on each invocation. * * @return decoded tag message as a string. Never null. The returned string * does not contain any LFs, even if the first paragraph spanned * multiple lines. Embedded LFs are converted to spaces. */ public final String getShortMessage() { byte[] raw = buffer; int msgB = RawParseUtils.tagMessage(raw, 0); if (msgB < 0) { return ""; //$NON-NLS-1$ } int msgE = RawParseUtils.endOfParagraph(raw, msgB); String str = RawParseUtils.decode(guessEncoding(), raw, msgB, msgE); if (RevCommit.hasLF(raw, msgB, msgE)) { str = StringUtils.replaceLineBreaksWithSpace(str); } return str; }