Philip L. McMahon
2012-01-28 2cdb73b442169b48da1588ab7cfaac7256677a5e
refs
author Philip L. McMahon <philip.l.mcmahon@gmail.com>
Saturday, January 28, 2012 13:37 -0500
committer Philip L. McMahon <philip.l.mcmahon@gmail.com>
Saturday, January 28, 2012 13:57 -0500
commit2cdb73b442169b48da1588ab7cfaac7256677a5e
tree 3ea80eefbea2c2f2476e231af06ba180c9ffd690 tree | zip | gz
parent 30f9d25d77ccb5cd978d4cf8fa389ec819e90e95 view | diff
RepositoryModel will use String rather than RefModel to track the current
symbolic head and available heads.

Added convenience methods to JGitUtils to support retrieving available
heads as List<String>.
When resolving the symbolic head target as a String, if the head is
detached, attempt to match the commit SHA1 against the known tags, using
the most recent tag if more than one matches.
Revised error messaging to better reflect actual outcome.
Adjusted tab indexes on edit repository page to include default head combo
box.
Updated message key for default head combo box to use uppercase "HEAD".
6 files modified
150 ■■■■■ changed files
src/com/gitblit/GitBlit.java 13 ●●●● diff | view | raw | blame | history
src/com/gitblit/models/RepositoryModel.java 4 ●●●● diff | view | raw | blame | history
src/com/gitblit/utils/JGitUtils.java 86 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/GitBlitWebApp.properties 2 ●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/EditRepositoryPage.html 26 ●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/EditRepositoryPage.java 19 ●●●●● diff | view | raw | blame | history