Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Code Style @version tag for revision history.
Code Style @version tag for revision history. [message #895964] Mon, 16 July 2012 16:39 Go to next message
Zachary Lytle is currently offline Zachary LytleFriend
Messages: 1
Registered: July 2012
Junior Member
Is there a way to have generated comments with an @version tag contain something useful from the commit/revision? Ideally, the abbreviated commit id would be added to any @version tag where changes were made, but anything more useful that the original date the comment was created would be great.

I'm very new to using anything more than shoving my workspace into Dropbox, so I understand if this is a newbie question that belongs elsewhere and apologise in advance.
Re: Code Style @version tag for revision history. [message #895982 is a reply to message #895964] Mon, 16 July 2012 18:08 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
What is it you really want to see? If you just want to know which commit last modified any given line in the file, Annotations will show you that. That seems cleaner to me than modifying the source.
Re: Code Style @version tag for revision history. [message #896016 is a reply to message #895964] Mon, 16 July 2012 22:41 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Zachary Lytle skrev 2012-07-16 18.39:
> Is there a way to have generated comments with an @version tag contain
> something useful from the commit/revision? Ideally, the abbreviated
> commit id would be added to any @version tag where changes were made,
> but anything more useful that the original date the comment was created
> would be great.
> I'm very new to using anything more than shoving my workspace into
> Dropbox, so I understand if this is a newbie question that belongs
> elsewhere and apologise in advance.

The @version tag is for compatibility documentation and should (when
used) be populated with the OSGi version.

The PDE API analysis tools can help you do that for OSGi bundles.

-- robin
Previous Topic:newbie import from git repository question
Next Topic:Update site problem
Goto Forum:
  


Current Time: Fri Mar 29 13:37:34 GMT 2024

Powered by FUDForum. Page generated in 0.02119 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top