Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Commit.getShortMessage()?

söndag 08 november 2009 06:52:25 skrev  Brad Larson:
> RevCommit has getFullMessage() and getShortMessage().  Would it make
> sense for me to add getShortMessage() to Commit to live alongside
> getMessage()?
>
> I'm filling in the RefUpdate message when making a commit, and this
> would be handy.  There might already be a better way..

Indeed there is a better way. The Commit and similar objects represent the
early incarnations of JGit. The way forward for reading is using the revision
walker. We still need Commit for creating commits, but I don't think we should
extend functionality much there. The reason we have not deprecated Commit
yet is that we still have to use it since there is no alternative yet.

-- robin



Back to the top