├── .checkstyle ├── .circleci └── config.yml ├── .classpath ├── .gitbugtraq ├── .github ├── SECURITY.md ├── ok.sh └── workflows │ ├── ci-build.yml │ └── nightly-build.yml ├── .gitignore ├── .gitmodules ├── .mailmap ├── .project ├── .travis.yml ├── CONTRIBUTING.md ├── HOME.md ├── LICENSE ├── NOTICE ├── README.markdown ├── build.moxie ├── build.xml ├── gitblit.iml ├── release.template ├── releases.moxie └── src ├── main ├── .gitignore ├── bugtraq │ ├── LICENSE │ └── com │ │ └── syntevo │ │ └── bugtraq │ │ ├── BugtraqConfig.java │ │ ├── BugtraqConfigEntry.java │ │ ├── BugtraqEntry.java │ │ ├── BugtraqException.java │ │ ├── BugtraqFormatter.java │ │ ├── BugtraqParser.java │ │ └── BugtraqParserIssueId.java ├── config │ └── checkstyle.xml ├── distrib │ ├── data │ │ ├── certs │ │ │ ├── authority.conf │ │ │ ├── instructions.tmpl │ │ │ ├── instructions.tmpl_zh_TW │ │ │ ├── mail.tmpl │ │ │ └── mail.tmpl_zh_TW │ │ ├── clientapps.json │ │ ├── defaults.properties │ │ ├── git │ │ │ └── project.mkd │ │ ├── gitblit.properties │ │ ├── groovy │ │ │ ├── .gitignore │ │ │ ├── blockpush.groovy │ │ │ ├── fisheye.groovy │ │ │ ├── fogbugz.groovy │ │ │ ├── jenkins.groovy │ │ │ ├── localclone.groovy │ │ │ ├── protect-refs.groovy │ │ │ ├── redmine-fetch.groovy │ │ │ ├── sendmail-html.groovy │ │ │ ├── sendmail.groovy │ │ │ ├── subgit.groovy │ │ │ ├── thebuggenie.groovy │ │ │ ├── youtrack-readme.md │ │ │ └── youtrack.groovy │ │ ├── projects.conf │ │ ├── projects_ja.conf │ │ └── users.conf │ ├── federation.properties │ ├── linux │ │ ├── add-indexed-branch.sh │ │ ├── authority.sh │ │ ├── gitblit-stop.sh │ │ ├── gitblit.sh │ │ ├── install-service-centos.sh │ │ ├── install-service-fedora.sh │ │ ├── install-service-freebsd.sh │ │ ├── install-service-ubuntu.sh │ │ ├── java-proxy-config.sh │ │ ├── migrate-tickets.sh │ │ ├── reindex-tickets.sh │ │ ├── service-centos.sh │ │ ├── service-freebsd.sh │ │ └── service-ubuntu.sh │ └── win │ │ ├── add-indexed-branch.cmd │ │ ├── amd64 │ │ └── gitblit.exe │ │ ├── authority.cmd │ │ ├── gitblit-stop.cmd │ │ ├── gitblit.cmd │ │ ├── gitblitw.exe │ │ ├── ia64 │ │ └── gitblit.exe │ │ ├── installService.cmd │ │ ├── migrate-tickets.cmd │ │ ├── reindex-tickets.cmd │ │ ├── uninstallService.cmd │ │ └── x86 │ │ └── gitblit.exe ├── java │ ├── .gitignore │ ├── WEB-INF │ │ ├── web.xml │ │ └── weblogic.xml │ ├── com │ │ └── gitblit │ │ │ ├── .gitignore │ │ │ ├── AddIndexedBranch.java │ │ │ ├── AvatarGenerator.java │ │ │ ├── ConfigUserService.java │ │ │ ├── Constants.java │ │ │ ├── FederationClient.java │ │ │ ├── FileSettings.java │ │ │ ├── GitBlit.java │ │ │ ├── GitBlitException.java │ │ │ ├── GitBlitServer.java │ │ │ ├── GitblitSslContextFactory.java │ │ │ ├── GitblitTrustManager.java │ │ │ ├── GravatarGenerator.java │ │ │ ├── IStoredSettings.java │ │ │ ├── IUserService.java │ │ │ ├── MigrateTickets.java │ │ │ ├── ReindexTickets.java │ │ │ ├── StoredUserConfig.java │ │ │ ├── WebXmlSettings.java │ │ │ ├── auth │ │ │ ├── AuthenticationProvider.java │ │ │ ├── HtpasswdAuthProvider.java │ │ │ ├── HttpHeaderAuthProvider.java │ │ │ ├── LdapAuthProvider.java │ │ │ ├── PAMAuthProvider.java │ │ │ ├── RedmineAuthProvider.java │ │ │ ├── SalesforceAuthProvider.java │ │ │ └── WindowsAuthProvider.java │ │ │ ├── authority │ │ │ ├── AuthorityWorker.java │ │ │ ├── CertificateStatus.java │ │ │ ├── CertificateStatusRenderer.java │ │ │ ├── CertificatesTableModel.java │ │ │ ├── DefaultOidsPanel.java │ │ │ ├── GitblitAuthority.java │ │ │ ├── NewCertificateConfig.java │ │ │ ├── NewClientCertificateDialog.java │ │ │ ├── NewSSLCertificateDialog.java │ │ │ ├── RequestFocusListener.java │ │ │ ├── UserCertificateConfig.java │ │ │ ├── UserCertificateModel.java │ │ │ ├── UserCertificatePanel.java │ │ │ ├── UserCertificateTableModel.java │ │ │ ├── UserOidsPanel.java │ │ │ ├── Utils.java │ │ │ └── X509CertificateViewer.java │ │ │ ├── client │ │ │ ├── BooleanCellRenderer.java │ │ │ ├── BranchRenderer.java │ │ │ ├── ClosableTabComponent.java │ │ │ ├── DateCellRenderer.java │ │ │ ├── EditRegistrationDialog.java │ │ │ ├── EditRepositoryDialog.java │ │ │ ├── EditTeamDialog.java │ │ │ ├── EditUserDialog.java │ │ │ ├── FeedEntryTableModel.java │ │ │ ├── FeedsPanel.java │ │ │ ├── FeedsTableModel.java │ │ │ ├── GitblitClient.java │ │ │ ├── GitblitManager.java │ │ │ ├── GitblitPanel.java │ │ │ ├── GitblitRegistration.java │ │ │ ├── GitblitWorker.java │ │ │ ├── HeaderPanel.java │ │ │ ├── IndicatorsRenderer.java │ │ │ ├── JPalette.java │ │ │ ├── MessageRenderer.java │ │ │ ├── NameRenderer.java │ │ │ ├── PropertiesTableModel.java │ │ │ ├── RegistrantPermissionsPanel.java │ │ │ ├── RegistrantPermissionsTableModel.java │ │ │ ├── RegistrationsDialog.java │ │ │ ├── RegistrationsTableModel.java │ │ │ ├── RepositoriesPanel.java │ │ │ ├── RepositoriesTableModel.java │ │ │ ├── SearchDialog.java │ │ │ ├── SettingCellRenderer.java │ │ │ ├── SettingPanel.java │ │ │ ├── SettingsPanel.java │ │ │ ├── SettingsTableModel.java │ │ │ ├── StatusPanel.java │ │ │ ├── SubscribedRepositoryRenderer.java │ │ │ ├── SubscriptionsDialog.java │ │ │ ├── TeamsPanel.java │ │ │ ├── TeamsTableModel.java │ │ │ ├── Translation.java │ │ │ ├── UsersPanel.java │ │ │ ├── UsersTableModel.java │ │ │ ├── Utils.java │ │ │ └── splash.png │ │ │ ├── extensions │ │ │ ├── GitblitPlugin.java │ │ │ ├── GitblitWicketPlugin.java │ │ │ ├── HttpRequestFilter.java │ │ │ ├── LifeCycleListener.java │ │ │ ├── NavLinkExtension.java │ │ │ ├── PatchsetHook.java │ │ │ ├── ReceiveHook.java │ │ │ ├── RepositoryLifeCycleListener.java │ │ │ ├── RepositoryNavLinkExtension.java │ │ │ ├── TicketHook.java │ │ │ ├── UserMenuExtension.java │ │ │ └── UserTeamLifeCycleListener.java │ │ │ ├── fanout │ │ │ ├── FanoutClient.java │ │ │ ├── FanoutConstants.java │ │ │ ├── FanoutNioService.java │ │ │ ├── FanoutService.java │ │ │ ├── FanoutServiceConnection.java │ │ │ ├── FanoutSocketService.java │ │ │ └── FanoutStats.java │ │ │ ├── git │ │ │ ├── GitblitReceivePack.java │ │ │ ├── GitblitReceivePackFactory.java │ │ │ ├── GitblitUploadPackFactory.java │ │ │ ├── PatchsetCommand.java │ │ │ ├── PatchsetReceivePack.java │ │ │ ├── ReceiveCommandEvent.java │ │ │ ├── RepositoryResolver.java │ │ │ └── SideBandProgressMonitor.java │ │ │ ├── guice │ │ │ ├── AvatarGeneratorProvider.java │ │ │ ├── CoreModule.java │ │ │ ├── IPublicKeyManagerProvider.java │ │ │ ├── ITicketServiceProvider.java │ │ │ ├── WebModule.java │ │ │ └── WorkQueueProvider.java │ │ │ ├── ldap │ │ │ └── LdapConnection.java │ │ │ ├── manager │ │ │ ├── AuthenticationManager.java │ │ │ ├── FederationManager.java │ │ │ ├── FilestoreManager.java │ │ │ ├── GitblitManager.java │ │ │ ├── IAuthenticationManager.java │ │ │ ├── IFederationManager.java │ │ │ ├── IFilestoreManager.java │ │ │ ├── IGitblit.java │ │ │ ├── IManager.java │ │ │ ├── INotificationManager.java │ │ │ ├── IPluginManager.java │ │ │ ├── IProjectManager.java │ │ │ ├── IRepositoryManager.java │ │ │ ├── IRuntimeManager.java │ │ │ ├── IServicesManager.java │ │ │ ├── IUserManager.java │ │ │ ├── NotificationManager.java │ │ │ ├── PluginManager.java │ │ │ ├── ProjectManager.java │ │ │ ├── RepositoryManager.java │ │ │ ├── RuntimeManager.java │ │ │ ├── ServicesManager.java │ │ │ └── UserManager.java │ │ │ ├── models │ │ │ ├── Activity.java │ │ │ ├── AnnotatedLine.java │ │ │ ├── DailyLogEntry.java │ │ │ ├── FederationModel.java │ │ │ ├── FederationProposal.java │ │ │ ├── FederationSet.java │ │ │ ├── FeedEntryModel.java │ │ │ ├── FeedModel.java │ │ │ ├── FilestoreModel.java │ │ │ ├── ForkModel.java │ │ │ ├── GitClientApplication.java │ │ │ ├── GitNote.java │ │ │ ├── Mailing.java │ │ │ ├── Menu.java │ │ │ ├── Metric.java │ │ │ ├── NavLink.java │ │ │ ├── PathModel.java │ │ │ ├── PluginRegistry.java │ │ │ ├── ProjectModel.java │ │ │ ├── RefLogEntry.java │ │ │ ├── RefModel.java │ │ │ ├── RegistrantAccessPermission.java │ │ │ ├── RepositoryCommit.java │ │ │ ├── RepositoryModel.java │ │ │ ├── RepositoryUrl.java │ │ │ ├── SearchResult.java │ │ │ ├── ServerSettings.java │ │ │ ├── ServerStatus.java │ │ │ ├── SettingModel.java │ │ │ ├── SubmoduleModel.java │ │ │ ├── TeamModel.java │ │ │ ├── TicketModel.java │ │ │ ├── TreeNodeModel.java │ │ │ ├── UserChoice.java │ │ │ ├── UserModel.java │ │ │ ├── UserPreferences.java │ │ │ └── UserRepositoryPreferences.java │ │ │ ├── service │ │ │ ├── FederationPullService.java │ │ │ ├── GarbageCollectorService.java │ │ │ ├── LdapSyncService.java │ │ │ ├── LuceneRepoIndexStore.java │ │ │ ├── LuceneService.java │ │ │ ├── MailService.java │ │ │ └── MirrorService.java │ │ │ ├── servlet │ │ │ ├── AccessDeniedServlet.java │ │ │ ├── AccessRestrictionFilter.java │ │ │ ├── AuthenticationFilter.java │ │ │ ├── BranchGraphServlet.java │ │ │ ├── DownloadZipFilter.java │ │ │ ├── DownloadZipServlet.java │ │ │ ├── EnforceAuthenticationFilter.java │ │ │ ├── FederationServlet.java │ │ │ ├── FilestoreServlet.java │ │ │ ├── FilterRuntimeConfig.java │ │ │ ├── GitFilter.java │ │ │ ├── GitServlet.java │ │ │ ├── GitblitContext.java │ │ │ ├── JsonServlet.java │ │ │ ├── LogoServlet.java │ │ │ ├── PagesFilter.java │ │ │ ├── PagesServlet.java │ │ │ ├── ProxyFilter.java │ │ │ ├── PtServlet.java │ │ │ ├── RawFilter.java │ │ │ ├── RawServlet.java │ │ │ ├── RobotsTxtServlet.java │ │ │ ├── RpcFilter.java │ │ │ ├── RpcServlet.java │ │ │ ├── SparkleShareInviteServlet.java │ │ │ ├── SyndicationFilter.java │ │ │ └── SyndicationServlet.java │ │ │ ├── tickets │ │ │ ├── BranchTicketService.java │ │ │ ├── FileTicketService.java │ │ │ ├── ITicketService.java │ │ │ ├── NullTicketService.java │ │ │ ├── QueryBuilder.java │ │ │ ├── QueryResult.java │ │ │ ├── RedisTicketService.java │ │ │ ├── TicketIndexer.java │ │ │ ├── TicketLabel.java │ │ │ ├── TicketMilestone.java │ │ │ ├── TicketNotifier.java │ │ │ ├── TicketResponsible.java │ │ │ ├── TicketSerializer.java │ │ │ ├── commands.md │ │ │ ├── email.css │ │ │ └── viewTicket.html │ │ │ ├── transport │ │ │ ├── git │ │ │ │ ├── GitDaemon.java │ │ │ │ ├── GitDaemonClient.java │ │ │ │ └── GitDaemonService.java │ │ │ └── ssh │ │ │ │ ├── DisabledFilesystemFactory.java │ │ │ │ ├── FileKeyManager.java │ │ │ │ ├── FileKeyPairProvider.java │ │ │ │ ├── IPublicKeyManager.java │ │ │ │ ├── LdapKeyManager.java │ │ │ │ ├── MemoryKeyManager.java │ │ │ │ ├── NonForwardingFilter.java │ │ │ │ ├── NullKeyManager.java │ │ │ │ ├── SshDaemon.java │ │ │ │ ├── SshDaemonClient.java │ │ │ │ ├── SshKey.java │ │ │ │ ├── SshKeyAuthenticator.java │ │ │ │ ├── SshKrbAuthenticator.java │ │ │ │ ├── SshServerSession.java │ │ │ │ ├── SshServerSessionFactory.java │ │ │ │ ├── UsernamePasswordAuthenticator.java │ │ │ │ ├── WelcomeShell.java │ │ │ │ ├── commands │ │ │ │ ├── BaseCommand.java │ │ │ │ ├── CommandMetaData.java │ │ │ │ ├── DispatchCommand.java │ │ │ │ ├── ListCommand.java │ │ │ │ ├── ListFilterCommand.java │ │ │ │ ├── PluginDispatcher.java │ │ │ │ ├── RootDispatcher.java │ │ │ │ ├── SshCommand.java │ │ │ │ ├── SshCommandContext.java │ │ │ │ ├── SshCommandFactory.java │ │ │ │ ├── UsageExample.java │ │ │ │ ├── UsageExamples.java │ │ │ │ └── VersionCommand.java │ │ │ │ ├── git │ │ │ │ ├── BaseGitCommand.java │ │ │ │ ├── GarbageCollectionCommand.java │ │ │ │ ├── GitDispatcher.java │ │ │ │ ├── Receive.java │ │ │ │ └── Upload.java │ │ │ │ └── keys │ │ │ │ ├── BaseKeyCommand.java │ │ │ │ └── KeysDispatcher.java │ │ │ ├── utils │ │ │ ├── ActivityUtils.java │ │ │ ├── ArrayUtils.java │ │ │ ├── Base64.java │ │ │ ├── BugtraqProcessor.java │ │ │ ├── ByteFormat.java │ │ │ ├── ClientLogger.java │ │ │ ├── ColorFactory.java │ │ │ ├── CommitCache.java │ │ │ ├── CompressionUtils.java │ │ │ ├── ConnectionUtils.java │ │ │ ├── ContainerDetector.java │ │ │ ├── ContainerUtils.java │ │ │ ├── DeepCopier.java │ │ │ ├── DiffStatFormatter.java │ │ │ ├── DiffUtils.java │ │ │ ├── FederationUtils.java │ │ │ ├── FileUtils.java │ │ │ ├── FlipTable.java │ │ │ ├── GitBlitDiffFormatter.java │ │ │ ├── HtmlBuilder.java │ │ │ ├── HttpUtils.java │ │ │ ├── IdGenerator.java │ │ │ ├── JGitUtils.java │ │ │ ├── JSoupXssFilter.java │ │ │ ├── JnaUtils.java │ │ │ ├── JsonUtils.java │ │ │ ├── LuceneIndexStore.java │ │ │ ├── MarkdownUtils.java │ │ │ ├── MetricUtils.java │ │ │ ├── ModelUtils.java │ │ │ ├── ObjectCache.java │ │ │ ├── PasswordHash.java │ │ │ ├── PasswordHashPbkdf2.java │ │ │ ├── PatchFormatter.java │ │ │ ├── PathUtils.java │ │ │ ├── RefLogUtils.java │ │ │ ├── ResettableByteArrayOutputStream.java │ │ │ ├── RpcUtils.java │ │ │ ├── SecureRandom.java │ │ │ ├── StringUtils.java │ │ │ ├── SyndicationUtils.java │ │ │ ├── TaskInfoFactory.java │ │ │ ├── TimeUtils.java │ │ │ ├── WorkQueue.java │ │ │ ├── X509Utils.java │ │ │ ├── XssFilter.java │ │ │ └── cli │ │ │ │ ├── CmdLineParser.java │ │ │ │ └── SubcommandHandler.java │ │ │ └── wicket │ │ │ ├── AuthorizationStrategy.java │ │ │ ├── CacheControl.java │ │ │ ├── ExternalImage.java │ │ │ ├── FilestoreUI.java │ │ │ ├── GitBlitWebApp.java │ │ │ ├── GitBlitWebApp.properties │ │ │ ├── GitBlitWebApp_cs.properties │ │ │ ├── GitBlitWebApp_de.properties │ │ │ ├── GitBlitWebApp_en.properties │ │ │ ├── GitBlitWebApp_es.properties │ │ │ ├── GitBlitWebApp_fr.properties │ │ │ ├── GitBlitWebApp_it.properties │ │ │ ├── GitBlitWebApp_ja.properties │ │ │ ├── GitBlitWebApp_ko.properties │ │ │ ├── GitBlitWebApp_nl.properties │ │ │ ├── GitBlitWebApp_no.properties │ │ │ ├── GitBlitWebApp_pl.properties │ │ │ ├── GitBlitWebApp_pt_BR.properties │ │ │ ├── GitBlitWebApp_ru.properties │ │ │ ├── GitBlitWebApp_zh_CN.properties │ │ │ ├── GitBlitWebApp_zh_TW.properties │ │ │ ├── GitBlitWebSession.java │ │ │ ├── GitblitParamUrlCodingStrategy.java │ │ │ ├── GitblitRedirectException.java │ │ │ ├── GitblitWicketApp.java │ │ │ ├── GitblitWicketFilter.java │ │ │ ├── Html5DateField.java │ │ │ ├── MarkupProcessor.java │ │ │ ├── NonTrimmedPasswordTextField.java │ │ │ ├── PluginClassResolver.java │ │ │ ├── RequiresAdminRole.java │ │ │ ├── SafeTextModel.java │ │ │ ├── SessionlessForm.java │ │ │ ├── StringChoiceRenderer.java │ │ │ ├── TicketsUI.java │ │ │ ├── UrlExternalFormComparator.java │ │ │ ├── WicketUtils.java │ │ │ ├── charting │ │ │ ├── Chart.java │ │ │ ├── Charts.java │ │ │ ├── Flotr2BarChart.java │ │ │ ├── Flotr2Charts.java │ │ │ ├── Flotr2LineChart.java │ │ │ └── Flotr2PieChart.java │ │ │ ├── freemarker │ │ │ ├── Freemarker.java │ │ │ ├── FreemarkerPanel.java │ │ │ └── templates │ │ │ │ ├── FilterableProjectList.fm │ │ │ │ └── FilterableRepositoryList.fm │ │ │ ├── ng │ │ │ ├── NgController.java │ │ │ └── angular.js │ │ │ ├── pages │ │ │ ├── ActivityPage.html │ │ │ ├── ActivityPage.java │ │ │ ├── BasePage.html │ │ │ ├── BasePage.java │ │ │ ├── BlamePage.html │ │ │ ├── BlamePage.java │ │ │ ├── BlobDiffPage.html │ │ │ ├── BlobDiffPage.java │ │ │ ├── BlobPage.html │ │ │ ├── BlobPage.java │ │ │ ├── BranchesPage.html │ │ │ ├── BranchesPage.java │ │ │ ├── ChangePasswordPage.html │ │ │ ├── ChangePasswordPage.java │ │ │ ├── CommitDiffPage.html │ │ │ ├── CommitDiffPage.java │ │ │ ├── CommitPage.html │ │ │ ├── CommitPage.java │ │ │ ├── ComparePage.html │ │ │ ├── ComparePage.java │ │ │ ├── DashboardPage.java │ │ │ ├── DocPage.html │ │ │ ├── DocPage.java │ │ │ ├── DocsPage.html │ │ │ ├── DocsPage.java │ │ │ ├── EditFilePage.html │ │ │ ├── EditFilePage.java │ │ │ ├── EditMilestonePage.html │ │ │ ├── EditMilestonePage.java │ │ │ ├── EditRepositoryPage.html │ │ │ ├── EditRepositoryPage.java │ │ │ ├── EditTeamPage.html │ │ │ ├── EditTeamPage.java │ │ │ ├── EditTicketPage.html │ │ │ ├── EditTicketPage.java │ │ │ ├── EditUserPage.html │ │ │ ├── EditUserPage.java │ │ │ ├── EmptyRepositoryPage.html │ │ │ ├── EmptyRepositoryPage.java │ │ │ ├── EmptyRepositoryPage_cs.html │ │ │ ├── EmptyRepositoryPage_de.html │ │ │ ├── EmptyRepositoryPage_es.html │ │ │ ├── EmptyRepositoryPage_fr.html │ │ │ ├── EmptyRepositoryPage_it.html │ │ │ ├── EmptyRepositoryPage_ja.html │ │ │ ├── EmptyRepositoryPage_ko.html │ │ │ ├── EmptyRepositoryPage_nl.html │ │ │ ├── EmptyRepositoryPage_no.html │ │ │ ├── EmptyRepositoryPage_pl.html │ │ │ ├── EmptyRepositoryPage_pt_BR.html │ │ │ ├── EmptyRepositoryPage_ru.html │ │ │ ├── EmptyRepositoryPage_zh_CN.html │ │ │ ├── ExportTicketPage.java │ │ │ ├── FederationPage.html │ │ │ ├── FederationPage.java │ │ │ ├── FederationRegistrationPage.html │ │ │ ├── FederationRegistrationPage.java │ │ │ ├── FilestorePage.html │ │ │ ├── FilestorePage.java │ │ │ ├── FilestoreUsage.html │ │ │ ├── FilestoreUsage.java │ │ │ ├── FilestoreUsage_ja.html │ │ │ ├── ForkPage.html │ │ │ ├── ForkPage.java │ │ │ ├── ForksPage.html │ │ │ ├── ForksPage.java │ │ │ ├── GitSearchPage.html │ │ │ ├── GitSearchPage.java │ │ │ ├── HistoryPage.html │ │ │ ├── HistoryPage.java │ │ │ ├── ImageDiffHandler.java │ │ │ ├── Language.java │ │ │ ├── LogPage.html │ │ │ ├── LogPage.java │ │ │ ├── LogoutPage.html │ │ │ ├── LogoutPage.java │ │ │ ├── LuceneSearchPage.html │ │ │ ├── LuceneSearchPage.java │ │ │ ├── MetricsPage.html │ │ │ ├── MetricsPage.java │ │ │ ├── MyDashboardPage.html │ │ │ ├── MyDashboardPage.java │ │ │ ├── MyTicketsPage.html │ │ │ ├── MyTicketsPage.java │ │ │ ├── NewMilestonePage.html │ │ │ ├── NewMilestonePage.java │ │ │ ├── NewRepositoryPage.html │ │ │ ├── NewRepositoryPage.java │ │ │ ├── NewTicketPage.html │ │ │ ├── NewTicketPage.java │ │ │ ├── NoDocsPage.html │ │ │ ├── NoDocsPage.java │ │ │ ├── NoTicketsPage.html │ │ │ ├── NoTicketsPage.java │ │ │ ├── OverviewPage.html │ │ │ ├── OverviewPage.java │ │ │ ├── PatchPage.html │ │ │ ├── PatchPage.java │ │ │ ├── ProjectPage.html │ │ │ ├── ProjectPage.java │ │ │ ├── ProjectsPage.html │ │ │ ├── ProjectsPage.java │ │ │ ├── RawPage.java │ │ │ ├── ReflogPage.html │ │ │ ├── ReflogPage.java │ │ │ ├── RepositoriesPage.html │ │ │ ├── RepositoriesPage.java │ │ │ ├── RepositoryPage.html │ │ │ ├── RepositoryPage.java │ │ │ ├── ReviewProposalPage.html │ │ │ ├── ReviewProposalPage.java │ │ │ ├── RootPage.html │ │ │ ├── RootPage.java │ │ │ ├── RootSubPage.html │ │ │ ├── RootSubPage.java │ │ │ ├── SendProposalPage.html │ │ │ ├── SendProposalPage.java │ │ │ ├── SessionPage.java │ │ │ ├── SummaryPage.html │ │ │ ├── SummaryPage.java │ │ │ ├── TagPage.html │ │ │ ├── TagPage.java │ │ │ ├── TagsPage.html │ │ │ ├── TagsPage.java │ │ │ ├── TeamsPage.html │ │ │ ├── TeamsPage.java │ │ │ ├── TicketPage.html │ │ │ ├── TicketPage.java │ │ │ ├── TicketsPage.html │ │ │ ├── TicketsPage.java │ │ │ ├── TreePage.html │ │ │ ├── TreePage.java │ │ │ ├── UserPage.html │ │ │ ├── UserPage.java │ │ │ ├── UsersPage.html │ │ │ ├── UsersPage.java │ │ │ ├── create_git.md │ │ │ ├── existing_git.md │ │ │ ├── prettify │ │ │ │ ├── lang-apollo.js │ │ │ │ ├── lang-basic.js │ │ │ │ ├── lang-clj.js │ │ │ │ ├── lang-css.js │ │ │ │ ├── lang-dart.js │ │ │ │ ├── lang-erlang.js │ │ │ │ ├── lang-go.js │ │ │ │ ├── lang-hs.js │ │ │ │ ├── lang-lisp.js │ │ │ │ ├── lang-llvm.js │ │ │ │ ├── lang-lua.js │ │ │ │ ├── lang-matlab.js │ │ │ │ ├── lang-ml.js │ │ │ │ ├── lang-mumps.js │ │ │ │ ├── lang-n.js │ │ │ │ ├── lang-pascal.js │ │ │ │ ├── lang-proto.js │ │ │ │ ├── lang-r.js │ │ │ │ ├── lang-rd.js │ │ │ │ ├── lang-scala.js │ │ │ │ ├── lang-sql.js │ │ │ │ ├── lang-tcl.js │ │ │ │ ├── lang-tex.js │ │ │ │ ├── lang-vb.js │ │ │ │ ├── lang-vhdl.js │ │ │ │ ├── lang-wiki.js │ │ │ │ ├── lang-xq.js │ │ │ │ ├── lang-yaml.js │ │ │ │ ├── prettify.css │ │ │ │ ├── prettify.js │ │ │ │ └── run_prettify.js │ │ │ ├── propose_git.md │ │ │ ├── propose_pt.md │ │ │ └── scripts │ │ │ │ ├── imgdiff.js │ │ │ │ └── wicketHtml5Patch.js │ │ │ └── panels │ │ │ ├── AccessPolicyPanel.html │ │ │ ├── AccessPolicyPanel.java │ │ │ ├── ActivityPanel.html │ │ │ ├── ActivityPanel.java │ │ │ ├── AvatarImage.html │ │ │ ├── AvatarImage.java │ │ │ ├── BasePanel.java │ │ │ ├── BooleanChoiceOption.html │ │ │ ├── BooleanChoiceOption.java │ │ │ ├── BooleanOption.html │ │ │ ├── BooleanOption.java │ │ │ ├── BranchesPanel.html │ │ │ ├── BranchesPanel.java │ │ │ ├── BulletListPanel.html │ │ │ ├── BulletListPanel.java │ │ │ ├── ChoiceOption.html │ │ │ ├── ChoiceOption.java │ │ │ ├── CommentPanel.html │ │ │ ├── CommentPanel.java │ │ │ ├── CommitHeaderPanel.html │ │ │ ├── CommitHeaderPanel.java │ │ │ ├── CommitLegendPanel.html │ │ │ ├── CommitLegendPanel.java │ │ │ ├── CompressedDownloadsPanel.html │ │ │ ├── CompressedDownloadsPanel.java │ │ │ ├── DiffStatPanel.html │ │ │ ├── DiffStatPanel.java │ │ │ ├── DigestsPanel.html │ │ │ ├── DigestsPanel.java │ │ │ ├── DropDownMenu.html │ │ │ ├── DropDownMenu.java │ │ │ ├── FederationProposalsPanel.html │ │ │ ├── FederationProposalsPanel.java │ │ │ ├── FederationRegistrationsPanel.html │ │ │ ├── FederationRegistrationsPanel.java │ │ │ ├── FederationTokensPanel.html │ │ │ ├── FederationTokensPanel.java │ │ │ ├── FilterableProjectList.html │ │ │ ├── FilterableProjectList.java │ │ │ ├── FilterableRepositoryList.html │ │ │ ├── FilterableRepositoryList.java │ │ │ ├── HistoryPanel.html │ │ │ ├── HistoryPanel.java │ │ │ ├── IconAjaxLink.java │ │ │ ├── LinkPanel.html │ │ │ ├── LinkPanel.java │ │ │ ├── LogPanel.html │ │ │ ├── LogPanel.java │ │ │ ├── MarkdownTextArea.java │ │ │ ├── NavigationPanel.html │ │ │ ├── NavigationPanel.java │ │ │ ├── NestedRepositoryTreePanel.html │ │ │ ├── NestedRepositoryTreePanel.java │ │ │ ├── ObjectContainer.java │ │ │ ├── PagerPanel.html │ │ │ ├── PagerPanel.java │ │ │ ├── PathBreadcrumbsPanel.html │ │ │ ├── PathBreadcrumbsPanel.java │ │ │ ├── ProjectRepositoryPanel.html │ │ │ ├── ProjectRepositoryPanel.java │ │ │ ├── ReflogPanel.html │ │ │ ├── ReflogPanel.java │ │ │ ├── RefsPanel.html │ │ │ ├── RefsPanel.java │ │ │ ├── RegistrantPermissionsPanel.html │ │ │ ├── RegistrantPermissionsPanel.java │ │ │ ├── RepositoriesPanel.html │ │ │ ├── RepositoriesPanel.java │ │ │ ├── RepositoryNamePanel.html │ │ │ ├── RepositoryNamePanel.java │ │ │ ├── RepositoryUrlPanel.html │ │ │ ├── RepositoryUrlPanel.java │ │ │ ├── SearchPanel.html │ │ │ ├── SearchPanel.java │ │ │ ├── ShockWaveComponent.java │ │ │ ├── SimpleAjaxLink.html │ │ │ ├── SimpleAjaxLink.java │ │ │ ├── SshKeysPanel.html │ │ │ ├── SshKeysPanel.java │ │ │ ├── TagsPanel.html │ │ │ ├── TagsPanel.java │ │ │ ├── TeamsPanel.html │ │ │ ├── TeamsPanel.java │ │ │ ├── TextAreaOption.html │ │ │ ├── TextAreaOption.java │ │ │ ├── TextOption.html │ │ │ ├── TextOption.java │ │ │ ├── TicketListPanel.html │ │ │ ├── TicketListPanel.java │ │ │ ├── TicketSearchForm.java │ │ │ ├── UserTitlePanel.html │ │ │ ├── UserTitlePanel.java │ │ │ ├── UsersPanel.html │ │ │ └── UsersPanel.java │ ├── log4j.properties │ ├── login.mkd │ ├── login_cs.mkd │ ├── login_de.mkd │ ├── login_es.mkd │ ├── login_fr.mkd │ ├── login_it.mkd │ ├── login_ja.mkd │ ├── login_ko.mkd │ ├── login_nl.mkd │ ├── login_no.mkd │ ├── login_pl.mkd │ ├── login_pt_br.mkd │ ├── login_ru.mkd │ ├── login_zh_CN.mkd │ ├── login_zh_TW.mkd │ ├── logo.png │ ├── pt.cmd │ ├── pt.py │ ├── pt.txt │ ├── welcome.mkd │ ├── welcome_cs.mkd │ ├── welcome_de.mkd │ ├── welcome_es.mkd │ ├── welcome_fr.mkd │ ├── welcome_it.mkd │ ├── welcome_ja.mkd │ ├── welcome_ko.mkd │ ├── welcome_nl.mkd │ ├── welcome_no.mkd │ ├── welcome_pl.mkd │ ├── welcome_pt_br.mkd │ ├── welcome_ru.mkd │ ├── welcome_zh_CN.mkd │ └── welcome_zh_TW.mkd ├── js │ ├── .gitignore │ ├── editor.dev.css │ ├── editor.dev.js │ └── package.json └── resources │ ├── add_16x16.png │ ├── arrow_down.png │ ├── arrow_left.png │ ├── arrow_line.png │ ├── arrow_off.png │ ├── arrow_page.png │ ├── arrow_project.png │ ├── arrow_up.png │ ├── background.png │ ├── barnum_32x32.png │ ├── blank.png │ ├── blink32.png │ ├── book_16x16.png │ ├── bootstrap-fixes.css │ ├── bootstrap │ ├── css │ │ ├── bootstrap-responsive.css │ │ ├── bootstrap.css │ │ └── iconic.css │ ├── font │ │ ├── iconic_fill.afm │ │ ├── iconic_fill.css │ │ ├── iconic_fill.eot │ │ ├── iconic_fill.otf │ │ ├── iconic_fill.svg │ │ ├── iconic_fill.ttf │ │ ├── iconic_fill.woff │ │ ├── iconic_stroke.afm │ │ ├── iconic_stroke.css │ │ ├── iconic_stroke.eot │ │ ├── iconic_stroke.otf │ │ ├── iconic_stroke.svg │ │ ├── iconic_stroke.ttf │ │ └── iconic_stroke.woff │ ├── img │ │ ├── glyphicons-halflings-white.png │ │ └── glyphicons-halflings.png │ └── js │ │ ├── bootstrap.js │ │ └── jquery.js │ ├── bug_16x16.png │ ├── bullet_black.png │ ├── bullet_blue.png │ ├── bullet_delete.png │ ├── bullet_error.png │ ├── bullet_feed.png │ ├── bullet_green.png │ ├── bullet_key.png │ ├── bullet_orange.png │ ├── bullet_red.png │ ├── bullet_white.png │ ├── bullet_yellow.png │ ├── clipboard │ ├── clipboard.min.js │ └── gitblit-ctcbtn.js │ ├── clipboard_13x13.png │ ├── clipboard_16x16.png │ ├── clippy.png │ ├── cold_16x16.png │ ├── commit_branch_16x16.png │ ├── commit_changes_16x16.png │ ├── commit_divide_16x16.png │ ├── commit_join_16x16.png │ ├── commit_merge_16x16.png │ ├── commit_up_16x16.png │ ├── federated_16x16.png │ ├── feed_16x16.png │ ├── file_16x16.png │ ├── file_acrobat_16x16.png │ ├── file_c_16x16.png │ ├── file_code_16x16.png │ ├── file_cpp_16x16.png │ ├── file_cs_16x16.png │ ├── file_doc_16x16.png │ ├── file_excel_16x16.png │ ├── file_h_16x16.png │ ├── file_java_16x16.png │ ├── file_php_16x16.png │ ├── file_ppt_16x16.png │ ├── file_ruby_16x16.png │ ├── file_settings_16x16.png │ ├── file_vs_16x16.png │ ├── file_world_16x16.png │ ├── file_zip_16x16.png │ ├── flotr2 │ ├── flotr2.custom.css │ └── flotr2.min.js │ ├── folder_16x16.png │ ├── folder_star_16x16.png │ ├── folder_star_32x32.png │ ├── fontawesome │ ├── css │ │ └── font-awesome.min.css │ └── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ ├── fork-black_16x16.png │ ├── fork_16x16.png │ ├── git-black-16x16.png │ ├── git-black.png │ ├── git-black_210x210.png │ ├── git-black_32x32.png │ ├── git-orange-16x16.png │ ├── gitblit-editor.min.css │ ├── gitblit-editor.min.js │ ├── gitblit.css │ ├── gitblit │ └── js │ │ └── collapsible-table.js │ ├── gitblt-favicon.png │ ├── gitblt-logo.png │ ├── gitblt2.png │ ├── gitblt2_white.png │ ├── gitblt_25.png │ ├── gitblt_25_white.png │ ├── github_32x32.png │ ├── gitweb-favicon.png │ ├── health_16x16.png │ ├── heart_16x16.png │ ├── hideheader.css │ ├── information_16x16.png │ ├── lock_16x16.png │ ├── lock_go_16x16.png │ ├── lock_pull_16x16.png │ ├── mail_16x16.png │ ├── mirror_16x16.png │ ├── octicons │ ├── octicons-local.ttf │ ├── octicons.css │ ├── octicons.eot │ ├── octicons.less │ ├── octicons.svg │ ├── octicons.ttf │ ├── octicons.woff │ └── sprockets-octicons.scss │ ├── pixel.png │ ├── rosette_16x16.png │ ├── rosette_32x32.png │ ├── script_16x16.png │ ├── search-icon.png │ ├── settings_16x16.png │ ├── settings_32x32.png │ ├── shield_16x16.png │ ├── smartgithg_32x32.png │ ├── sourcetree_32x32.png │ ├── sparkleshare_32x32.png │ ├── star_16x16.png │ ├── star_32x32.png │ ├── sub32.png │ ├── tag_16x16.png │ ├── tortoise32.png │ ├── tower_32x32.png │ ├── user_16x16.png │ ├── users_16x16.png │ └── vcard_16x16.png ├── site ├── .gitignore ├── administration.mkd ├── architecture.odg ├── custom.less ├── design.mkd ├── eclipse_plugin.mkd ├── fancybox │ ├── blank.gif │ ├── fancy_close.png │ ├── fancy_loading.png │ ├── fancy_nav_left.png │ ├── fancy_nav_right.png │ ├── fancy_shadow_e.png │ ├── fancy_shadow_n.png │ ├── fancy_shadow_ne.png │ ├── fancy_shadow_nw.png │ ├── fancy_shadow_s.png │ ├── fancy_shadow_se.png │ ├── fancy_shadow_sw.png │ ├── fancy_shadow_w.png │ ├── fancy_title_left.png │ ├── fancy_title_main.png │ ├── fancy_title_over.png │ ├── fancy_title_right.png │ ├── fancybox-x.png │ ├── fancybox-y.png │ ├── fancybox.png │ ├── jquery-1.4.3.min.js │ ├── jquery.easing-1.3.pack.js │ ├── jquery.fancybox-1.3.4.css │ ├── jquery.fancybox-1.3.4.js │ ├── jquery.fancybox-1.3.4.pack.js │ └── jquery.mousewheel-3.0.4.pack.js ├── faq.mkd ├── features.mkd ├── federation.mkd ├── federation.odg ├── gitblit_logo_white.xcf ├── permissions_matrix.ods ├── plugins_extensions.mkd ├── plugins_overview.mkd ├── properties.mkd ├── releasecurrent.mkd ├── releasehistory.mkd ├── releases.mkd ├── resources │ ├── 6x12.dfont │ ├── 6x13.dfont │ ├── 7x13.dfont │ ├── 7x14.dfont │ ├── architecture.png │ ├── fed_aggregation.png │ ├── fed_mirror.png │ ├── ldapSample.png │ ├── permissions_matrix.png │ ├── screenshots.js │ └── stjude_150x150.gif ├── rpc.mkd ├── screenshots.mkd ├── screenshots │ ├── 00.png │ ├── 00b.png │ ├── 00c.png │ ├── 00d.png │ ├── 01.png │ ├── 01b.png │ ├── 01c.png │ ├── 02.png │ ├── 03.png │ ├── 04.png │ ├── 05.png │ ├── 06.png │ ├── 07.png │ ├── 08.png │ ├── 09.png │ ├── 10.png │ ├── 11.png │ ├── 12.png │ ├── 13.png │ ├── 14.png │ ├── 15.png │ ├── image_processing.txt │ ├── m00.png │ ├── m01.png │ ├── m02.png │ ├── m03.png │ ├── m04.png │ ├── m05.png │ ├── m06.png │ ├── m07.png │ ├── m08.png │ ├── m09.png │ └── m10.png ├── setup_authentication.mkd ├── setup_bugtraq.mkd ├── setup_clientmenus.mkd ├── setup_fail2ban.mkd ├── setup_filestore.mkd ├── setup_go.mkd ├── setup_hooks.mkd ├── setup_lucene.mkd ├── setup_mirrors.mkd ├── setup_proxy.mkd ├── setup_scaling.mkd ├── setup_transport_http.mkd ├── setup_transport_ssh.mkd ├── setup_viewer.mkd ├── setup_war.mkd ├── siteindex.mkd ├── templates │ ├── atom.ftl │ ├── ghreleasenotes.awk │ ├── macros.ftl │ ├── releasecurrent.ftl │ ├── releasehistory.ftl │ └── rss.ftl ├── tickets_barnum.mkd ├── tickets_overview.mkd ├── tickets_replication.mkd ├── tickets_setup.mkd ├── tickets_using.mkd ├── upgrade_go.mkd └── upgrade_war.mkd └── test ├── bugtraq └── com │ └── syntevo │ └── bugtraq │ ├── BugtraqFormatterTest.java │ └── BugtraqParserTest.java ├── config ├── test-gitblit.properties ├── test-ui-gitblit.properties ├── test-ui-users.conf └── test-users.conf ├── data ├── .gitignore ├── ambition.git.zip ├── gitective.git.zip ├── hello-world.git.zip ├── hello-world.properties └── ticgit.git.zip ├── java ├── com │ └── gitblit │ │ ├── StoredUserConfigTest.java │ │ ├── service │ │ └── LuceneRepoIndexStoreTest.java │ │ ├── servlet │ │ └── RawServletTest.java │ │ ├── tests │ │ ├── .gitignore │ │ ├── ArrayUtilsTest.java │ │ ├── AuthenticationManagerTest.java │ │ ├── Base64Test.java │ │ ├── BranchTicketServiceTest.java │ │ ├── ByteFormatTest.java │ │ ├── DiffUtilsTest.java │ │ ├── FanoutServiceTest.java │ │ ├── FederationTests.java │ │ ├── FileTicketServiceTest.java │ │ ├── FileUtilsTest.java │ │ ├── FilestoreManagerTest.java │ │ ├── FilestoreServletTest.java │ │ ├── GitBlitSuite.java │ │ ├── GitBlitTest.java │ │ ├── GitDaemonTest.java │ │ ├── GitServletTest.java │ │ ├── GitblitUnitTest.java │ │ ├── GravatarTest.java │ │ ├── GroovyScriptTest.java │ │ ├── HtpasswdAuthenticationTest.java │ │ ├── Issue0259Test.java │ │ ├── Issue0271Test.java │ │ ├── JGitUtilsTest.java │ │ ├── JnaUtilsTest.java │ │ ├── JschConfigTestSessionFactory.java │ │ ├── JsonUtilsTest.java │ │ ├── LdapAuthenticationTest.java │ │ ├── LdapBasedUnitTest.java │ │ ├── LdapConnectionTest.java │ │ ├── LdapPublicKeyManagerTest.java │ │ ├── LdapSyncServiceTest.java │ │ ├── LuceneExecutorTest.java │ │ ├── MailTest.java │ │ ├── MarkdownUtilsTest.java │ │ ├── MetricUtilsTest.java │ │ ├── ModelUtilsTest.java │ │ ├── ObjectCacheTest.java │ │ ├── PathUtilsTest.java │ │ ├── PermissionsTest.java │ │ ├── RedisTicketServiceTest.java │ │ ├── RedmineAuthenticationTest.java │ │ ├── RepositoryModelTest.java │ │ ├── RpcTests.java │ │ ├── SshDaemonTest.java │ │ ├── SshKerberosAuthenticationTest.java │ │ ├── SshKeysDispatcherTest.java │ │ ├── SshUnitTest.java │ │ ├── StringUtilsTest.java │ │ ├── SyndicationUtilsTest.java │ │ ├── TicketReferenceTest.java │ │ ├── TicketServiceTest.java │ │ ├── UITicketTest.java │ │ ├── UserChoiceTest.java │ │ ├── UserModelTest.java │ │ ├── UserServiceTest.java │ │ ├── X509UtilsTest.java │ │ └── mock │ │ │ ├── MemorySettings.java │ │ │ ├── MockGitblitContext.java │ │ │ └── MockRuntimeManager.java │ │ ├── transport │ │ └── ssh │ │ │ └── FileKeyPairProviderTest.java │ │ ├── utils │ │ ├── LuceneIndexStoreTest.java │ │ ├── PasswordHashTest.java │ │ ├── SecureRandomTest.java │ │ └── TimeUtilsTest.java │ │ └── wicket │ │ ├── GitBlitWebAppResourceBundleTest.java │ │ ├── MarkupProcessorTest.java │ │ └── panels │ │ └── TreeNodeModelTest.java └── de │ └── akquinet │ └── devops │ ├── GitBlitServer4UITests.java │ ├── GitblitRunnable.java │ ├── LaunchWithUITestConfig.java │ ├── ManualUITestLaunch.java │ └── test │ └── ui │ ├── TestUISuite.java │ ├── cases │ └── UI_MultiAdminSupportTest.java │ ├── generic │ └── AbstractUITest.java │ └── view │ ├── Exp.java │ ├── GitblitDashboardView.java │ ├── GitblitPageView.java │ ├── RepoEditView.java │ └── RepoListView.java └── resources ├── htpasswd ├── htpasswd-user.in ├── htpasswd.in └── users.conf.in ├── issue0259.conf ├── issue0271.conf └── ldap ├── addgroup.ldif ├── adduser.ldif ├── sampledata.ldif └── users.conf /.checkstyle: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.gitbugtraq: -------------------------------------------------------------------------------- 1 | [bugtraq "issues"] 2 | url = https://github.com/gitblit-org/gitblit/issues/%BUGID% 3 | loglinkregex = "[Ii]ssue[-#:\\s]{1}\\d+" 4 | logregex = "\\d+" 5 | loglinktext = issue-%BUGID% 6 | [bugtraq "pullrequests"] 7 | url = "https://github.com/gitblit-org/gitblit/pull/%BUGID%" 8 | loglinkregex = "(?:pull request|pull|pr)\\s*[-#]?[0-9]+" 9 | logregex = "\\d+" 10 | loglinktext = "pull request #%BUGID%" 11 | [bugtraq "tickets"] 12 | url = "https://dev.gitblit.com/tickets/gitblit.git/%BUGID%" 13 | loglinkregex = "(?:ticket)\\s*[-#]?[0-9]+" 14 | logregex = "\\d+" 15 | loglinktext = "ticket #%BUGID%" 16 | -------------------------------------------------------------------------------- /.github/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | 4 | ## Reporting a Vulnerability 5 | 6 | The Gitblit team takes security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions. 7 | 8 | 9 | To report a security vulnerability, you can use the Github mechanism to [privately report a vulnerability](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability). On Gitblit's repository page, choose the `Security` tab (under the repository name). Click the `Report a vulnerability` button on the right. 10 | 11 | Alternatively, you can also report any security issue via e-mail. Send an email to the following email address and include the word "SECURITY" in the subject line. 12 | 13 | ``` 14 | gitblitorg@gmail.com 15 | ``` 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | tags 2 | /temp 3 | /lib 4 | /ext 5 | /build 6 | /site 7 | /git 8 | /lucene 9 | /build.properties 10 | /federation.properties 11 | /mailtest.properties 12 | /test-users.conf 13 | /.settings/ 14 | /src/main/java/reference.properties 15 | /src/main/java/WEB-INF/reference.properties 16 | /bin/ 17 | /build-demo.xml 18 | *.directory 19 | /.gradle 20 | /pom.xml 21 | /x509test 22 | /data 23 | /*.conf 24 | /build-next.xml 25 | /*.ps1 26 | /*.sh 27 | /*.factorypath 28 | /src/main/dagger 29 | /**/.idea 30 | /**/init.lua 31 | /**/session 32 | /nbproject/private 33 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "src/main/distrib/data/gitignore"] 2 | path = src/main/distrib/data/gitignore 3 | url = https://github.com/github/gitignore.git 4 | [submodule "src/main/js/prosemirror"] 5 | path = src/main/js/prosemirror 6 | url = https://github.com/ProseMirror/prosemirror.git 7 | -------------------------------------------------------------------------------- /.mailmap: -------------------------------------------------------------------------------- 1 | James Moger James Moger 2 | James Moger James Moger 3 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Gitblit 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | net.sf.eclipsecs.core.CheckstyleBuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | net.sf.eclipsecs.core.CheckstyleNature 22 | 23 | 24 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | dist: trusty 2 | 3 | language: java 4 | 5 | jdk: 6 | - openjdk8 7 | - oraclejdk11 8 | -------------------------------------------------------------------------------- /src/main/.gitignore: -------------------------------------------------------------------------------- 1 | /dagger 2 | /gen 3 | -------------------------------------------------------------------------------- /src/main/distrib/data/certs/authority.conf: -------------------------------------------------------------------------------- 1 | [new] 2 | duration = 365 3 | organizationalUnit = Gitblit 4 | organization = Gitblit 5 | locality = Gitblit 6 | stateProvince = NY 7 | countryCode = US 8 | -------------------------------------------------------------------------------- /src/main/distrib/data/certs/mail.tmpl: -------------------------------------------------------------------------------- 1 | Hello $userDisplayname, 2 | 3 | Your private key, public certificate, and the Gitblit Certificate Authority 4 | certificate for $serverHostname are bundled together in the attached zip file. 5 | 6 | There are also setup/installation instructions included in the zip for Git and 7 | several major browsers to get you started. -------------------------------------------------------------------------------- /src/main/distrib/data/certs/mail.tmpl_zh_TW: -------------------------------------------------------------------------------- 1 | $userDisplayname 您好 2 | 3 | 伺服器 $serverHostname 所需要的私鑰,公鑰以及Gitblit簽證檔案(CA)已經全部打包並且以zip壓縮檔方式寄給您. 4 | 5 | 此外,檔案還附上各瀏覽器設定步驟供您參考. -------------------------------------------------------------------------------- /src/main/distrib/data/git/project.mkd: -------------------------------------------------------------------------------- 1 | This project contains all repositories created directly in the root of *git.repositoriesFolder*. 2 | 3 | This message is stored in *git.repositoriesFolder*/**project.mkd** 4 | 5 | #### Other Projects 6 | 7 | Each project, or repository group, may specify it's own message by defining a **project.mkd** file in the project folder. 8 | 9 |
10 | git.repositoriesFolder/projecta/project.mkd
11 | git.repositoriesFolder/projectb/project.mkd
12 | 
13 | -------------------------------------------------------------------------------- /src/main/distrib/data/gitblit.properties: -------------------------------------------------------------------------------- 1 | # 2 | # GITBLIT.PROPERTIES 3 | # 4 | # Define your custom settings in this file and/or include settings defined in 5 | # other properties files. 6 | # 7 | 8 | # Include Gitblit's 'defaults.properties' within your configuration. 9 | # 10 | # NOTE: Gitblit will not automatically reload "included" properties. Gitblit 11 | # only watches the 'gitblit.properties' file for modifications. 12 | # 13 | # Paths may be relative to the ${baseFolder} or they may be absolute. 14 | # 15 | # COMMA-DELIMITED 16 | # SINCE 1.7.0 17 | include = defaults.properties 18 | 19 | # 20 | # Define your overrides or custom settings below 21 | # 22 | -------------------------------------------------------------------------------- /src/main/distrib/data/groovy/.gitignore: -------------------------------------------------------------------------------- 1 | /grape 2 | -------------------------------------------------------------------------------- /src/main/distrib/data/projects.conf: -------------------------------------------------------------------------------- 1 | [project "main"] 2 | title = Main Repositories 3 | description = main group of repositories -------------------------------------------------------------------------------- /src/main/distrib/data/projects_ja.conf: -------------------------------------------------------------------------------- 1 | #このファイルは、他の翻訳ファイルと違いこのファイル名のままでは動作しない。 2 | #_ja は便宜上付けている名前で、projects.conf に改名し、既存の projects.conf と置き換えて初めて動作する。 3 | [project "main"] 4 | title = メインリポジトリ 5 | description = 共有リポジトリ群 6 | -------------------------------------------------------------------------------- /src/main/distrib/data/users.conf: -------------------------------------------------------------------------------- 1 | [user "admin"] 2 | password = admin 3 | role = "#admin" 4 | role = "#notfederated" 5 | -------------------------------------------------------------------------------- /src/main/distrib/linux/add-indexed-branch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # -------------------------------------------------------------------------- 3 | # This is for Lucene search integration. 4 | # 5 | # Allows you to add an indexed branch specification to the repository config 6 | # for all matching repositories in the specified folder. 7 | # 8 | # All repositories are included unless excluded using a --skip parameter. 9 | # --skip supports simple wildcard fuzzy matching however only 1 asterisk is 10 | # allowed per parameter. 11 | # 12 | # Always use forward-slashes for the path separator in your parameters!! 13 | # 14 | # Set FOLDER to the server's git.repositoriesFolder 15 | # Set BRANCH ("default" or fully qualified ref - i.e. refs/heads/master) 16 | # Set EXCLUSIONS for any repositories that you do not want to change 17 | # -------------------------------------------------------------------------- 18 | FOLDER=data/git 19 | EXCLUSIONS="--skip test.git --skip group/test*" 20 | BRANCH=default 21 | java -cp gitblit.jar:"ext/*" com.gitblit.AddIndexedBranch --repositoriesFolder "$FOLDER" --branch "$BRANCH" "$EXCLUSIONS" 22 | -------------------------------------------------------------------------------- /src/main/distrib/linux/authority.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | java -cp "gitblit.jar:ext/*" com.gitblit.authority.GitblitAuthority --baseFolder data 3 | -------------------------------------------------------------------------------- /src/main/distrib/linux/gitblit-stop.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | java -cp "gitblit.jar:ext/*" com.gitblit.GitBlitServer --baseFolder data --stop 3 | -------------------------------------------------------------------------------- /src/main/distrib/linux/gitblit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | java -cp "gitblit.jar:ext/*" com.gitblit.GitBlitServer --baseFolder data 3 | -------------------------------------------------------------------------------- /src/main/distrib/linux/install-service-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sudo cp service-centos.sh /etc/init.d/gitblit 3 | sudo chkconfig --add gitblit 4 | -------------------------------------------------------------------------------- /src/main/distrib/linux/install-service-fedora.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -x 2 | # This script installs Gitblit on a system running under systemd. 3 | # The script assumes the server is running as user giblit 4 | 5 | # First create a file with the default settings 6 | cat > /tmp/gitblit.defaults << EOF 7 | GITBLIT_PATH=/opt/gitblit 8 | GITBLIT_BASE_FOLDER=/opt/gitblit/data 9 | GITBLIT_HTTP_PORT=0 10 | GITBLIT_HTTPS_PORT=8443 11 | EOF 12 | # Create a systemd service file 13 | cat > /tmp/gitblit.service << EOF 14 | [Unit] 15 | Description=Gitblit managing, viewing, and serving Git repositories. 16 | After=network.target 17 | 18 | [Service] 19 | User=gitblit 20 | Group=gitblit 21 | Environment="ARGS=-server -Xmx1024M -Djava.awt.headless=true -cp" 22 | EnvironmentFile=-/etc/sysconfig/gitblit 23 | WorkingDirectory=/opt/gitblit 24 | ExecStart=/usr/bin/java \$ARGS gitblit.jar:ext/* com.gitblit.GitBlitServer --httpsPort \$GITBLIT_HTTPS_PORT --httpPort \$GITBLIT_HTTP_PORT --baseFolder \$GITBLIT_BASE_FOLDER --dailyLogFile 25 | ExecStop=/usr/bin/java \$ARGS gitblit.jar:ext/* com.gitblit.GitBlitServer --baseFolder \$GITBLIT_BASE_FOLDER --stop 26 | 27 | [Install] 28 | WantedBy=multi-user.target 29 | EOF 30 | 31 | # Finally copy the files to the destination and register the systemd unit. 32 | sudo sh -c "cp /tmp/gitblit.defaults /etc/sysconfig/gitblit && cp /tmp/gitblit.service /etc/systemd/system/" 33 | sudo sh -c "systemctl daemon-reload && systemctl enable gitblit.service && systemctl start gitblit.service" 34 | -------------------------------------------------------------------------------- /src/main/distrib/linux/install-service-freebsd.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sudo cp service-freebsd.sh /usr/local/etc/rc.d/gitblit 3 | -------------------------------------------------------------------------------- /src/main/distrib/linux/install-service-ubuntu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sudo cp service-ubuntu.sh /etc/init.d/gitblit 3 | sudo update-rc.d gitblit defaults 4 | -------------------------------------------------------------------------------- /src/main/distrib/linux/java-proxy-config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # To set the proxy configuration, specify the following host name and port 4 | #PROXY_HOST= 5 | #PROXY_PORT= 6 | 7 | # To exclude any hosts from proxy configuration such that they directly accessed by Gitblit without passing through the proxy server, append the host name to the following variable using "|" as the separator 8 | NON_PROXY_HOSTS="localhost|127.0.0.*|*.local|192.168.*.*|10.193.*.*" 9 | 10 | ### The following should not need to be modified 11 | 12 | JAVA_PROXY_CONFIG="" 13 | 14 | if [ -n "${PROXY_HOST}" -a -n "${PROXY_PORT}" ]; then 15 | 16 | JAVA_PROXY_CONFIG=" -DproxySet=true -Dhttp.proxyHost=${PROXY_HOST} -Dhttp.proxyPort=${PROXY_PORT} -Dhttps.proxyHost=${PROXY_HOST} -Dhttps.proxyPort=${PROXY_PORT} -Dftp.proxyHost=${PROXY_HOST} -Dftp.proxyPort=${PROXY_PORT} " 17 | fi 18 | 19 | if [ -n "${PROXY_HOST}" -a -n "${PROXY_PORT}" -a -n "${NON_PROXY_HOSTS}" ]; then 20 | 21 | JAVA_PROXY_CONFIG="${JAVA_PROXY_CONFIG} -Dhttp.nonProxyHosts=\"${NON_PROXY_HOSTS}\" -Dftp.nonProxyHosts=\"${NON_PROXY_HOSTS}\" " 22 | fi 23 | 24 | export JAVA_PROXY_CONFIG 25 | 26 | -------------------------------------------------------------------------------- /src/main/distrib/linux/migrate-tickets.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # -------------------------------------------------------------------------- 3 | # This is for migrating Tickets from one service to another. 4 | # 5 | # usage: 6 | # 7 | # migrate-tickets.sh 8 | # 9 | # -------------------------------------------------------------------------- 10 | 11 | if [ -z $1 ] || [ -z $2 ]; then 12 | echo "Please specify the output ticket service and your baseFolder!"; 13 | echo ""; 14 | echo "usage:"; 15 | echo " migrate-tickets "; 16 | echo ""; 17 | exit 1; 18 | fi 19 | 20 | java -cp "gitblit.jar:ext/*" com.gitblit.MigrateTickets "$1" --baseFolder "$2" 21 | 22 | -------------------------------------------------------------------------------- /src/main/distrib/linux/reindex-tickets.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # -------------------------------------------------------------------------- 3 | # This is for reindexing Tickets with Lucene. 4 | # 5 | # Since the Tickets feature is undergoing massive churn it may be necessary 6 | # to reindex tickets due to model or index changes. 7 | # 8 | # usage: 9 | # 10 | # reindex-tickets.sh 11 | # 12 | # -------------------------------------------------------------------------- 13 | 14 | if [ -z $1 ] ; then 15 | echo "Please specify your baseFolder!"; 16 | echo ""; 17 | echo "usage:"; 18 | echo " reindex-tickets "; 19 | echo ""; 20 | exit 1; 21 | fi 22 | 23 | java -cp "gitblit.jar:ext/*" com.gitblit.ReindexTickets --baseFolder "$1" 24 | 25 | -------------------------------------------------------------------------------- /src/main/distrib/linux/service-freebsd.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # PROVIDE: gitblit 4 | # BEFORE: LOGIN 5 | # KEYWORD: shutdown 6 | 7 | PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" 8 | 9 | . /etc/rc.subr 10 | 11 | name="gitblit" 12 | rcvar="gitblit_enable" 13 | 14 | pidfile="/var/run/${name}.pid" 15 | 16 | start_cmd="${name}_start" 17 | stop_cmd="${name}_stop" 18 | restart_cmd="${name}_restart" 19 | 20 | 21 | # change theses values (default values) 22 | GITBLIT_PATH=/opt/gitblit 23 | GITBLIT_BASE_FOLDER=/opt/gitblit/data 24 | . ${GITBLIT_PATH}/java-proxy-config.sh 25 | COMMAND_LINE="java -server -Xmx1024M ${JAVA_PROXY_CONFIG} -Djava.awt.headless=true -cp gitblit.jar:ext/* com.gitblit.GitBlitServer --baseFolder $GITBLIT_BASE_FOLDER" 26 | 27 | gitblit_start() 28 | { 29 | echo "Starting Gitblit Server..." 30 | cd $GITBLIT_PATH 31 | $COMMAND_LINE --dailyLogFile & 32 | } 33 | 34 | gitblit_stop() 35 | { 36 | echo "Stopping Gitblit Server..." 37 | cd $GITBLIT_PATH 38 | $COMMAND_LINE --stop > /dev/null & 39 | } 40 | 41 | gitblit_restart() 42 | { 43 | $0 stop 44 | sleep 5 45 | $0 start 46 | } 47 | 48 | load_rc_config $name 49 | run_rc_command "$1" 50 | -------------------------------------------------------------------------------- /src/main/distrib/win/add-indexed-branch.cmd: -------------------------------------------------------------------------------- 1 | @REM -------------------------------------------------------------------------- 2 | @REM This is for Lucene search integration. 3 | @REM 4 | @REM Allows you to add an indexed branch specification to the repository config 5 | @REM for all matching repositories in the specified folder. 6 | @REM 7 | @REM All repositories are included unless excluded using a --skip parameter. 8 | @REM --skip supports simple wildcard fuzzy matching however only 1 asterisk is 9 | @REM allowed per parameter. 10 | @REM 11 | @REM Always use forward-slashes for the path separator in your parameters!! 12 | @REM 13 | @REM Set FOLDER to the server's git.repositoriesFolder 14 | @REM Set BRANCH ("default" or fully qualified ref - i.e. refs/heads/master) 15 | @REM Set EXCLUSIONS for any repositories that you do not want to change 16 | @REM -------------------------------------------------------------------------- 17 | @SETLOCAL 18 | @SET FOLDER=data/git 19 | @SET EXCLUSIONS=--skip test.git --skip group/test* 20 | @SET BRANCH=default 21 | @PUSHD %~dp0 22 | @java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.AddIndexedBranch --repositoriesFolder %FOLDER% --branch %BRANCH% %EXCLUSIONS% %* 23 | @POPD 24 | @ENDLOCAL 25 | -------------------------------------------------------------------------------- /src/main/distrib/win/amd64/gitblit.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitblit-org/gitblit/33394c740971dcdb73969879b1091a91b39eaa7c/src/main/distrib/win/amd64/gitblit.exe -------------------------------------------------------------------------------- /src/main/distrib/win/authority.cmd: -------------------------------------------------------------------------------- 1 | @SETLOCAL 2 | 3 | @SET gbhome=%~dp0 4 | @SET gbhome=%gbhome:~0,-1% 5 | 6 | @java -cp "%gbhome%\gitblit.jar";"%gbhome%\ext\*" com.gitblit.authority.GitblitAuthority --baseFolder "%gbhome%\data" %* 7 | 8 | @ENDLOCAL 9 | -------------------------------------------------------------------------------- /src/main/distrib/win/gitblit-stop.cmd: -------------------------------------------------------------------------------- 1 | @java -cp "%~dp0gitblit.jar";"%~dp0ext\*" com.gitblit.GitBlitServer --stop %* 2 | -------------------------------------------------------------------------------- /src/main/distrib/win/gitblit.cmd: -------------------------------------------------------------------------------- 1 | @SETLOCAL 2 | 3 | @SET gbhome=%~dp0 4 | @SET gbhome=%gbhome:~0,-1% 5 | 6 | @java -cp "%gbhome%\gitblit.jar";"%gbhome%\ext\*" com.gitblit.GitBlitServer --baseFolder "%gbhome%\data" %* 7 | 8 | @ENDLOCAL 9 | -------------------------------------------------------------------------------- /src/main/distrib/win/gitblitw.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitblit-org/gitblit/33394c740971dcdb73969879b1091a91b39eaa7c/src/main/distrib/win/gitblitw.exe -------------------------------------------------------------------------------- /src/main/distrib/win/ia64/gitblit.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitblit-org/gitblit/33394c740971dcdb73969879b1091a91b39eaa7c/src/main/distrib/win/ia64/gitblit.exe -------------------------------------------------------------------------------- /src/main/distrib/win/migrate-tickets.cmd: -------------------------------------------------------------------------------- 1 | @REM -------------------------------------------------------------------------- 2 | @REM This is for migrating Tickets from one service to another. 3 | @REM 4 | @REM usage: 5 | @REM migrate-tickets 6 | @REM 7 | @REM -------------------------------------------------------------------------- 8 | @if [%1]==[] goto help 9 | 10 | @if [%2]==[] goto help 11 | 12 | @java -cp "%~dp0gitblit.jar";"%~dp0ext\*" com.gitblit.MigrateTickets %1 --baseFolder %2 13 | @goto end 14 | 15 | :help 16 | @echo Please specify the output ticket service and your baseFolder! 17 | @echo. 18 | @echo e.g.: migrate-tickets com.gitblit.tickets.RedisTicketService "c:/gitblit data" 19 | @echo. 20 | 21 | :end 22 | -------------------------------------------------------------------------------- /src/main/distrib/win/reindex-tickets.cmd: -------------------------------------------------------------------------------- 1 | @REM -------------------------------------------------------------------------- 2 | @REM This is for reindexing Tickets with Lucene. 3 | @REM 4 | @REM Since the Tickets feature is undergoing massive churn it may be necessary 5 | @REM to reindex tickets due to model or index changes. 6 | @REM 7 | @REM usage: 8 | @REM reindex-tickets 9 | @REM 10 | @REM -------------------------------------------------------------------------- 11 | @if [%1]==[] goto nobasefolder 12 | 13 | @java -cp "%~dp0gitblit.jar";"%~dp0ext\*" com.gitblit.ReindexTickets --baseFolder %1 14 | @goto end 15 | 16 | :nobasefolder 17 | @echo Please specify your baseFolder! 18 | @echo. 19 | @echo reindex-tickets c:/gitblit-data 20 | @echo. 21 | 22 | :end 23 | -------------------------------------------------------------------------------- /src/main/distrib/win/uninstallService.cmd: -------------------------------------------------------------------------------- 1 | @SETLOCAL 2 | 3 | @REM arch = x86, amd64, or ia32 4 | SET ARCH=amd64 5 | 6 | @REM Delete the gitblit service 7 | "%~dp0%ARCH%\gitblit.exe" //DS//gitblit 8 | 9 | @ENDLOCAL 10 | -------------------------------------------------------------------------------- /src/main/distrib/win/x86/gitblit.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitblit-org/gitblit/33394c740971dcdb73969879b1091a91b39eaa7c/src/main/distrib/win/x86/gitblit.exe -------------------------------------------------------------------------------- /src/main/java/.gitignore: -------------------------------------------------------------------------------- 1 | /clientapps.json 2 | /defaults.properties 3 | -------------------------------------------------------------------------------- /src/main/java/WEB-INF/weblogic.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12.1.1 4 | gitblit 5 | 6 | true 7 | true 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/.gitignore: -------------------------------------------------------------------------------- 1 | /SettingKeys.java 2 | /Keys.java 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/AvatarGenerator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit; 17 | 18 | public interface AvatarGenerator { 19 | 20 | String getURL(String username, String emailaddress, boolean identicon, int width); 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/GravatarGenerator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit; 17 | 18 | import com.gitblit.utils.ActivityUtils; 19 | import com.google.inject.Singleton; 20 | 21 | @Singleton 22 | public class GravatarGenerator implements AvatarGenerator { 23 | 24 | @Override 25 | public String getURL(String username, String emailaddress, boolean identicon, int width) { 26 | String email = emailaddress == null ? username : emailaddress; 27 | if (identicon) { 28 | return ActivityUtils.getGravatarIdenticonUrl(email, width); 29 | } else { 30 | return ActivityUtils.getGravatarThumbnailUrl(email, width); 31 | } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/authority/CertificateStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.authority; 17 | 18 | public enum CertificateStatus { 19 | unknown, ok, expiring, expired, revoked 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/client/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitblit-org/gitblit/33394c740971dcdb73969879b1091a91b39eaa7c/src/main/java/com/gitblit/client/splash.png -------------------------------------------------------------------------------- /src/main/java/com/gitblit/extensions/NavLinkExtension.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.extensions; 17 | 18 | import java.util.List; 19 | 20 | import ro.fortsoft.pf4j.ExtensionPoint; 21 | 22 | import com.gitblit.models.NavLink; 23 | import com.gitblit.models.UserModel; 24 | 25 | /** 26 | * Extension point to contribute top-level navigation links. 27 | * 28 | * @author James Moger 29 | * @since 1.6.0 30 | * 31 | */ 32 | public abstract class NavLinkExtension implements ExtensionPoint { 33 | 34 | /** 35 | * @param user 36 | * @since 1.6.0 37 | * @return a list of nav links 38 | */ 39 | public abstract List getNavLinks(UserModel user); 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/extensions/RepositoryNavLinkExtension.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.extensions; 17 | 18 | import java.util.List; 19 | 20 | import ro.fortsoft.pf4j.ExtensionPoint; 21 | 22 | import com.gitblit.models.NavLink; 23 | import com.gitblit.models.RepositoryModel; 24 | import com.gitblit.models.UserModel; 25 | 26 | /** 27 | * Extension point to contribute repository page navigation links. 28 | * 29 | * @author James Moger 30 | * @since 1.6.0 31 | * 32 | */ 33 | public abstract class RepositoryNavLinkExtension implements ExtensionPoint { 34 | 35 | /** 36 | * @param user 37 | * @param repository 38 | * @since 1.6.0 39 | * @return a list of nav links 40 | */ 41 | public abstract List getNavLinks(UserModel user, RepositoryModel repository); 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/extensions/UserMenuExtension.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.extensions; 17 | 18 | import java.util.List; 19 | 20 | import ro.fortsoft.pf4j.ExtensionPoint; 21 | 22 | import com.gitblit.models.Menu.MenuItem; 23 | import com.gitblit.models.UserModel; 24 | 25 | /** 26 | * Extension point to contribute user menu items. 27 | * 28 | * @author James Moger 29 | * @since 1.6.0 30 | * 31 | */ 32 | public abstract class UserMenuExtension implements ExtensionPoint { 33 | 34 | /** 35 | * @param user 36 | * @since 1.6.0 37 | * @return a list of menu items 38 | */ 39 | public abstract List getMenuItems(UserModel user); 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/fanout/FanoutConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.fanout; 17 | 18 | import java.net.Socket; 19 | 20 | public class FanoutConstants { 21 | 22 | public final static String CHARSET = "ISO-8859-1"; 23 | public final static int BUFFER_LENGTH = 512; 24 | public final static String CH_ALL = "all"; 25 | public final static String CH_DEBUG = "debug"; 26 | public final static String MSG_CONNECTED = "connected..."; 27 | public final static String MSG_BUSY = "busy"; 28 | 29 | public static String getRemoteSocketId(Socket socket) { 30 | return socket.getInetAddress().getHostAddress() + ":" + socket.getPort(); 31 | } 32 | 33 | public static String getLocalSocketId(Socket socket) { 34 | return socket.getInetAddress().getHostAddress() + ":" + socket.getLocalPort(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/git/ReceiveCommandEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.git; 17 | 18 | import org.eclipse.jgit.events.RefsChangedEvent; 19 | import org.eclipse.jgit.transport.ReceiveCommand; 20 | 21 | import com.gitblit.models.RepositoryModel; 22 | 23 | /** 24 | * The event fired by other classes to allow this service to index tickets. 25 | * 26 | * @author James Moger 27 | */ 28 | public class ReceiveCommandEvent extends RefsChangedEvent { 29 | 30 | public final RepositoryModel model; 31 | 32 | public final ReceiveCommand cmd; 33 | 34 | public ReceiveCommandEvent(RepositoryModel model, ReceiveCommand cmd) { 35 | this.model = model; 36 | this.cmd = cmd; 37 | } 38 | } -------------------------------------------------------------------------------- /src/main/java/com/gitblit/manager/IManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.manager; 17 | 18 | public interface IManager { 19 | 20 | /** 21 | * Start the manager. 22 | * 23 | * @return the manager 24 | * @since 1.4.0 25 | */ 26 | IManager start(); 27 | 28 | /** 29 | * Stop the manager. 30 | * 31 | * @return the manager 32 | * @since 1.4.0 33 | */ 34 | IManager stop(); 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/manager/IUserManager.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.manager; 17 | 18 | import com.gitblit.IUserService; 19 | 20 | public interface IUserManager extends IManager, IUserService { 21 | 22 | /** 23 | * Returns true if the username represents an internal account 24 | * 25 | * @param username 26 | * @return true if the specified username represents an internal account 27 | * @since 1.4.0 28 | */ 29 | boolean isInternalAccount(String username); 30 | 31 | } -------------------------------------------------------------------------------- /src/main/java/com/gitblit/models/GitNote.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.models; 17 | 18 | import java.io.Serializable; 19 | 20 | /** 21 | * GitNote is a serializable model class that represents a git note. This class 22 | * retains an instance of the RefModel which contains the commit in which this 23 | * git note was created. 24 | * 25 | * @author James Moger 26 | * 27 | */ 28 | public class GitNote implements Serializable { 29 | 30 | private static final long serialVersionUID = 1L; 31 | 32 | public final String content; 33 | public final RefModel notesRef; 34 | 35 | public GitNote(RefModel notesRef, String text) { 36 | this.notesRef = notesRef; 37 | this.content = text; 38 | } 39 | } -------------------------------------------------------------------------------- /src/main/java/com/gitblit/models/SearchResult.java: -------------------------------------------------------------------------------- 1 | package com.gitblit.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import java.util.List; 6 | 7 | import com.gitblit.Constants.SearchObjectType; 8 | 9 | /** 10 | * Model class that represents a search result. 11 | * 12 | * @author James Moger 13 | * 14 | */ 15 | public class SearchResult implements Serializable { 16 | 17 | private static final long serialVersionUID = 1L; 18 | 19 | public int hitId; 20 | 21 | public int totalHits; 22 | 23 | public float score; 24 | 25 | public Date date; 26 | 27 | public String author; 28 | 29 | public String committer; 30 | 31 | public String summary; 32 | 33 | public String fragment; 34 | 35 | public String repository; 36 | 37 | public String branch; 38 | 39 | public String commitId; 40 | 41 | public String path; 42 | 43 | public List tags; 44 | 45 | public SearchObjectType type; 46 | 47 | public SearchResult() { 48 | } 49 | 50 | public String getId() { 51 | switch (type) { 52 | case blob: 53 | return path; 54 | case commit: 55 | return commitId; 56 | } 57 | return commitId; 58 | } 59 | 60 | @Override 61 | public String toString() { 62 | return score + " : " + type.name() + " : " + repository + " : " + getId() + " (" + branch + ")"; 63 | } 64 | } -------------------------------------------------------------------------------- /src/main/java/com/gitblit/models/UserRepositoryPreferences.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.models; 17 | 18 | import java.io.Serializable; 19 | 20 | /** 21 | * User repository preferences. 22 | * 23 | * @author James Moger 24 | * 25 | */ 26 | public class UserRepositoryPreferences implements Serializable { 27 | 28 | private static final long serialVersionUID = 1L; 29 | 30 | public String username; 31 | 32 | public String repositoryName; 33 | 34 | public boolean starred; 35 | 36 | @Override 37 | public String toString() { 38 | return username + ":" + repositoryName; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/tickets/commands.md: -------------------------------------------------------------------------------- 1 | #### To review with Git 2 | 3 | To review an updated patchset 4 | 5 | git fetch origin && git checkout ${ticketBranch} && git pull --ff-only 6 | 7 | To review a rewritten patchset 8 | 9 | git fetch origin && git checkout -B ${ticketBranch} 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/tickets/email.css: -------------------------------------------------------------------------------- 1 | table { 2 | border:1px solid #ddd; 3 | margin: 15px 0px; 4 | } 5 | 6 | th { 7 | font-weight: bold; 8 | border-bottom: 1px solid #ddd; 9 | } 10 | 11 | td, th { 12 | padding: 4px 8px; 13 | vertical-align: top; 14 | } 15 | 16 | a { 17 | color: #2F58A0; 18 | } 19 | 20 | a:hover { 21 | color: #002060; 22 | } 23 | 24 | body { 25 | color: black; 26 | } 27 | 28 | pre { 29 | background-color: rgb(250, 250, 250); 30 | border: 1px solid rgb(221, 221, 221); 31 | border-radius: 4px 4px 4px 4px; 32 | display: block; 33 | font-size: 12px; 34 | line-height: 18px; 35 | margin: 9px 0; 36 | padding: 8.5px; 37 | white-space: pre-wrap; 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/tickets/viewTicket.html: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/transport/ssh/DisabledFilesystemFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not 5 | * use this file except in compliance with the License. You may obtain a copy of 6 | * the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 | * License for the specific language governing permissions and limitations under 14 | * the License. 15 | */ 16 | package com.gitblit.transport.ssh; 17 | 18 | import java.io.IOException; 19 | import java.nio.file.FileSystem; 20 | 21 | import org.apache.sshd.common.file.FileSystemFactory; 22 | import org.apache.sshd.common.session.Session; 23 | 24 | public class DisabledFilesystemFactory implements FileSystemFactory { 25 | 26 | /** 27 | * Create user specific file system. 28 | * 29 | * @param session The session created for the user 30 | * @return The current {@link FileSystem} for the provided session 31 | * @throws java.io.IOException when the filesystem can not be created 32 | */ 33 | @Override 34 | public FileSystem createFileSystem(Session session) throws IOException { 35 | return null; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/transport/ssh/SshServerSession.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.transport.ssh; 17 | 18 | import org.apache.sshd.common.future.CloseFuture; 19 | import org.apache.sshd.common.future.SshFutureListener; 20 | import org.apache.sshd.common.io.IoSession; 21 | import org.apache.sshd.server.ServerFactoryManager; 22 | import org.apache.sshd.server.session.ServerSessionImpl; 23 | 24 | // Expose addition of close session listeners 25 | class SshServerSession extends ServerSessionImpl { 26 | 27 | SshServerSession(ServerFactoryManager server, IoSession ioSession) throws Exception { 28 | super(server, ioSession); 29 | } 30 | 31 | void addCloseSessionListener(SshFutureListener l) { 32 | closeFuture.addListener(l); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/transport/ssh/commands/CommandMetaData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 The Android Open Source Project 3 | * Copyright 2014 gitblit.com. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package com.gitblit.transport.ssh.commands; 18 | 19 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 20 | 21 | import java.lang.annotation.ElementType; 22 | import java.lang.annotation.Retention; 23 | import java.lang.annotation.Target; 24 | 25 | /** 26 | * Annotation tagged on a concrete Command to describe what it is doing 27 | */ 28 | @Target({ElementType.TYPE}) 29 | @Retention(RUNTIME) 30 | public @interface CommandMetaData { 31 | String name(); 32 | String [] aliases() default {}; 33 | String description() default ""; 34 | boolean admin() default false; 35 | boolean hidden() default false; 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/transport/ssh/commands/UsageExample.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.transport.ssh.commands; 17 | 18 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 19 | 20 | import java.lang.annotation.ElementType; 21 | import java.lang.annotation.Retention; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Annotation tagged on a concrete Command to describe how to use it. 26 | */ 27 | @Target({ElementType.TYPE}) 28 | @Retention(RUNTIME) 29 | public @interface UsageExample { 30 | String syntax(); 31 | String description() default ""; 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/transport/ssh/commands/UsageExamples.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.transport.ssh.commands; 17 | 18 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 19 | 20 | import java.lang.annotation.ElementType; 21 | import java.lang.annotation.Retention; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Annotation tagged on a concrete Command to describe how to use it. 26 | */ 27 | @Target({ElementType.TYPE}) 28 | @Retention(RUNTIME) 29 | public @interface UsageExamples { 30 | UsageExample [] examples() default {}; 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/transport/ssh/commands/VersionCommand.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.gitblit.transport.ssh.commands; 18 | 19 | import com.gitblit.Constants; 20 | 21 | @CommandMetaData(name="version", description = "Display the Gitblit version") 22 | public class VersionCommand extends SshCommand { 23 | 24 | @Override 25 | public void run() { 26 | stdout.println(Constants.getGitBlitVersion()); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/utils/TaskInfoFactory.java: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2013 The Android Open Source Project 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package com.gitblit.utils; 16 | 17 | public interface TaskInfoFactory { 18 | T getTaskInfo(WorkQueue.Task task); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/CacheControl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.wicket; 17 | 18 | import java.lang.annotation.Documented; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | /** 23 | * Page attribute to control what date as last-modified for the browser cache. 24 | * 25 | * http://betterexplained.com/articles/how-to-optimize-your-site-with-http-caching 26 | * https://developers.google.com/speed/docs/best-practices/caching 27 | * 28 | * @author James Moger 29 | * 30 | */ 31 | @Documented 32 | @Retention(RetentionPolicy.RUNTIME) 33 | public @interface CacheControl { 34 | 35 | public static enum LastModified { 36 | BOOT, ACTIVITY, PROJECT, REPOSITORY, COMMIT, NONE 37 | } 38 | 39 | LastModified value() default LastModified.NONE; 40 | } -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/ExternalImage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.wicket; 17 | 18 | import org.apache.wicket.markup.ComponentTag; 19 | import org.apache.wicket.markup.html.WebComponent; 20 | import org.apache.wicket.model.Model; 21 | 22 | public class ExternalImage extends WebComponent { 23 | 24 | private static final long serialVersionUID = 1L; 25 | 26 | public ExternalImage(String id, String url) { 27 | super(id, new Model(url)); 28 | } 29 | 30 | @Override 31 | protected void onComponentTag(ComponentTag tag) { 32 | super.onComponentTag(tag); 33 | checkComponentTag(tag, "img"); 34 | tag.put("src", getDefaultModelObjectAsString()); 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/GitBlitWebApp_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitblit-org/gitblit/33394c740971dcdb73969879b1091a91b39eaa7c/src/main/java/com/gitblit/wicket/GitBlitWebApp_de.properties -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/GitBlitWebApp_en.properties: -------------------------------------------------------------------------------- 1 | # Placeholder translation file to allow forcing the web ui to English -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/GitBlitWebApp_it.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitblit-org/gitblit/33394c740971dcdb73969879b1091a91b39eaa7c/src/main/java/com/gitblit/wicket/GitBlitWebApp_it.properties -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/GitBlitWebApp_ru.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitblit-org/gitblit/33394c740971dcdb73969879b1091a91b39eaa7c/src/main/java/com/gitblit/wicket/GitBlitWebApp_ru.properties -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/RequiresAdminRole.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.wicket; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Retention(RetentionPolicy.RUNTIME) 24 | @Target(ElementType.TYPE) 25 | public @interface RequiresAdminRole { 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/freemarker/templates/FilterableProjectList.fm: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | 5 |
6 |
7 | 8 |
9 | {{item.n}} 10 | {{item.t}} 11 | 12 | {{item.c | number}} 13 | 14 |
15 |
16 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/ActivityPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 |
9 |
10 | [days back] 11 |
12 |
13 |
[activity panel]
14 |
15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 |
26 |
27 |
28 | 29 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/BlobDiffPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 |
[commit header]
17 | 18 | 19 |
[breadcrumbs]
20 | 21 | 22 |
[diff text]
23 | 24 |
25 | 26 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/BranchesPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 |
[branches panel]
12 | 13 |
14 | 15 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/BranchesPage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.wicket.pages; 17 | 18 | import org.apache.wicket.PageParameters; 19 | 20 | import com.gitblit.wicket.CacheControl; 21 | import com.gitblit.wicket.CacheControl.LastModified; 22 | import com.gitblit.wicket.panels.BranchesPanel; 23 | 24 | @CacheControl(LastModified.REPOSITORY) 25 | public class BranchesPage extends RepositoryPage { 26 | 27 | public BranchesPage(PageParameters params) { 28 | super(params); 29 | 30 | add(new BranchesPanel("branchesPanel", getRepositoryModel(), getRepository(), -1, isShowAdmin() || isOwner())); 31 | } 32 | 33 | @Override 34 | protected String getPageName() { 35 | return getString("gb.branches"); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/ChangePasswordPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |
10 |
11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
 
 
22 |
23 | 24 | 25 |
26 |
27 |
28 |
29 | 30 |
31 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/FederationPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 |
9 |
[federation tokens panel]
10 | 11 |
[federation proposals panel]
12 | 13 |
[federation registrations panel]
14 |
15 |
16 | 17 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/FilestoreUsage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.wicket.pages; 17 | 18 | public class FilestoreUsage extends RootSubPage { 19 | 20 | public FilestoreUsage() { 21 | super(); 22 | setupPage("", ""); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/ForkPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 12 | 16 | 17 | 18 | 19 | 20 | 21 |
22 |
23 |
24 |
25 |
26 |
[fork text]
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | 35 | 36 |
37 | 38 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/ForksPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 | [a project] / [a fork] 14 | 15 |
16 |
17 | 18 |
19 | 20 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/GitSearchPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 |
[search panel]
17 | 18 | 19 |
20 | | « | » 21 |
22 | 23 |
24 | 25 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/HistoryPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 |
[history panel]
17 | 18 | 19 |
20 | | « | » 21 |
22 | 23 |
24 | 25 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/Language.java: -------------------------------------------------------------------------------- 1 | package com.gitblit.wicket.pages; 2 | 3 | import java.io.Serializable; 4 | 5 | public class Language implements Serializable { 6 | 7 | private static final long serialVersionUID = 1L; 8 | 9 | final String name; 10 | final String code; 11 | 12 | public Language(String name, String code) { 13 | this.name = name; 14 | this.code = code; 15 | } 16 | 17 | @Override 18 | public String toString() { 19 | return name + " (" + code + ")"; 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/LogPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 |
[log panel]
17 | 18 | 19 |
20 | | « | » 21 |
22 | 23 |
24 | 25 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/LogoutPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 23 | 24 | 25 |
26 |
[Feedback Panel]
27 | 28 |

[Session has ended]

29 |

[Please close the browser]

30 |
31 |
32 | 33 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |
10 |
11 |
12 | 13 |
14 | 15 |
16 | 17 |
18 | 19 |
20 | 21 |

22 |

23 | 24 |
25 | 26 |
27 | 28 |
29 |
30 |
31 | 32 |
33 |
34 |
35 |
36 |
37 | 38 |
39 | 40 |
41 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/NoDocsPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |
10 |
11 |
12 |
13 |

14 |

15 |

16 |

17 | 18 |
19 |
20 |
21 |
22 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/NoTicketsPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |
10 |
11 |
12 |
13 |

14 | 15 |

16 | 17 |
18 |
19 |
20 |
21 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/PatchPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 |
[patch content]
11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/ReflogPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 |
[reflog panel]
17 | 18 | 19 |
20 | | « | » 21 |
22 | 23 |
24 | 25 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/RepositoriesPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |
10 |
[repositories message]
11 | 12 |
[repositories panel]
13 |
14 |
15 | 16 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/ReviewProposalPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
received[received]
url[url]
message[message]
type[token type]
token[token]
proposal[definition]
18 | 19 |
20 | 21 |
22 | 23 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/RootSubPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |
10 |
11 |
12 | 13 |
14 | [page name] [sub name] 15 |
16 |
17 |
18 |
19 | 20 |
21 | 22 | 23 |
24 |
25 | 26 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/TagsPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 |
[tags panel]
12 | 13 |
14 | 15 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/TagsPage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.wicket.pages; 17 | 18 | import org.apache.wicket.PageParameters; 19 | 20 | import com.gitblit.wicket.CacheControl; 21 | import com.gitblit.wicket.CacheControl.LastModified; 22 | import com.gitblit.wicket.panels.TagsPanel; 23 | 24 | @CacheControl(LastModified.REPOSITORY) 25 | public class TagsPage extends RepositoryPage { 26 | 27 | public TagsPage(PageParameters params) { 28 | super(params); 29 | 30 | add(new TagsPanel("tagsPanel", repositoryName, getRepository(), -1)); 31 | 32 | } 33 | 34 | @Override 35 | protected String getPageName() { 36 | return getString("gb.tags"); 37 | } 38 | 39 | @Override 40 | protected Class getRepoNavPageClass() { 41 | return LogPage.class; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/TeamsPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 |
9 |
[teams panel]
10 |
11 |
12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/TeamsPage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.wicket.pages; 17 | 18 | import com.gitblit.wicket.RequiresAdminRole; 19 | import com.gitblit.wicket.panels.TeamsPanel; 20 | 21 | @RequiresAdminRole 22 | public class TeamsPage extends RootPage { 23 | 24 | public TeamsPage() { 25 | super(); 26 | setupPage("", ""); 27 | 28 | add(new TeamsPanel("teamsPanel", showAdmin).setVisible(showAdmin)); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/UsersPage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 |
9 |
[users panel]
10 |
11 |
12 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/UsersPage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 gitblit.com. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.gitblit.wicket.pages; 17 | 18 | import com.gitblit.wicket.RequiresAdminRole; 19 | import com.gitblit.wicket.panels.UsersPanel; 20 | 21 | @RequiresAdminRole 22 | public class UsersPage extends RootPage { 23 | 24 | public UsersPage() { 25 | super(); 26 | setupPage("", ""); 27 | 28 | add(new UsersPanel("usersPanel", showAdmin).setVisible(showAdmin)); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/create_git.md: -------------------------------------------------------------------------------- 1 | touch README.md 2 | git init 3 | git add README.md 4 | git commit -m "first commit" 5 | git remote add origin ${primaryUrl} 6 | git push -u origin master 7 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/existing_git.md: -------------------------------------------------------------------------------- 1 | git remote add origin ${primaryUrl} 2 | git push -u origin master 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-apollo.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\n\r]*/,null,"#"],["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, 2 | null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[ES]?BANK=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[!-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["apollo","agc","aea"]); 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-basic.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^"(?:[^\n\r"\\]|\\.)*(?:"|$)/,a,'"'],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^REM[^\n\r]*/,a],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,a],["pln",/^[a-z][^\W_]?(?:\$|%)?/i,a],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,a,"0123456789"],["pun", 3 | /^.[^\s\w"$%.]*/,a]]),["basic","cbm"]); 4 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-css.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n\u000c"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]+)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//], 2 | ["com",/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}\b/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-dart.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["com",/^#!.*/],["kwd",/^\b(?:import|library|part of|part|as|show|hide)\b/i],["com",/^\/\/.*/],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["kwd",/^\b(?:class|interface)\b/i],["kwd",/^\b(?:assert|break|case|catch|continue|default|do|else|finally|for|if|in|is|new|return|super|switch|this|throw|try|while)\b/i],["kwd",/^\b(?:abstract|const|extends|factory|final|get|implements|native|operator|set|static|typedef|var)\b/i], 2 | ["typ",/^\b(?:bool|double|dynamic|int|num|object|string|void)\b/i],["kwd",/^\b(?:false|null|true)\b/i],["str",/^r?'''[\S\s]*?[^\\]'''/],["str",/^r?"""[\S\s]*?[^\\]"""/],["str",/^r?'('|[^\n\f\r]*?[^\\]')/],["str",/^r?"("|[^\n\f\r]*?[^\\]")/],["pln",/^[$_a-z]\w*/i],["pun",/^[!%&*+/:<-?^|~-]/],["lit",/^\b0x[\da-f]+/i],["lit",/^\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i],["lit",/^\b\.\d+(?:e[+-]?\d+)?/i],["pun",/^[(),.;[\]{}]/]]), 3 | ["dart"]); 4 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-erlang.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["lit",/^[a-z]\w*/],["lit",/^'(?:[^\n\f\r'\\]|\\[^&])+'?/,null,"'"],["lit",/^\?[^\t\n ({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/], 2 | ["kwd",/^-[_a-z]+/],["typ",/^[A-Z_]\w*/],["pun",/^[,.;]/]]),["erlang","erl"]); 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-go.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["pln",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])+(?:'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\/\*[\S\s]*?\*\/)/],["pln",/^(?:[^"'/`]|\/(?![*/]))+/]]),["go"]); 2 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-hs.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, 2 | null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]); 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-lisp.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], 3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","lsp","scm","ss","rkt"]); 4 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-llvm.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^!?"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["com",/^;[^\n\r]*/,null,";"]],[["pln",/^[!%@](?:[$\-.A-Z_a-z][\w$\-.]*|\d+)/],["kwd",/^[^\W\d]\w*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[Xx][\dA-Fa-f]+)/],["pun",/^[(-*,:<->[\]{}]|\.\.\.$/]]),["llvm","ll"]); 2 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-lua.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\S\s]*?(?:]\1]|$)|[^\n\r]*)/],["str",/^\[(=*)\[[\S\s]*?(?:]\1]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i], 2 | ["pln",/^[_a-z]\w*/i],["pun",/^[^\w\t\n\r \xa0][^\w\t\n\r "'+=\xa0-]*/]]),["lua"]); 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-ml.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/], 2 | ["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],["pun",/^[^\w\t\n\r "'\xa0]+/]]),["fs","ml"]); 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-mumps.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"]|\\.)*"/,null,'"']],[["com",/^;[^\n\r]*/,null,";"],["dec",/^\$(?:d|device|ec|ecode|es|estack|et|etrap|h|horolog|i|io|j|job|k|key|p|principal|q|quit|st|stack|s|storage|sy|system|t|test|tl|tlevel|tr|trestart|x|y|z[a-z]*|a|ascii|c|char|d|data|e|extract|f|find|fn|fnumber|g|get|j|justify|l|length|na|name|o|order|p|piece|ql|qlength|qs|qsubscript|q|query|r|random|re|reverse|s|select|st|stack|t|text|tr|translate|nan)\b/i, 2 | null],["kwd",/^(?:[^$]b|break|c|close|d|do|e|else|f|for|g|goto|h|halt|h|hang|i|if|j|job|k|kill|l|lock|m|merge|n|new|o|open|q|quit|r|read|s|set|tc|tcommit|tre|trestart|tro|trollback|ts|tstart|u|use|v|view|w|write|x|xecute)\b/i,null],["lit",/^[+-]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?/i],["pln",/^[a-z][^\W_]*/i],["pun",/^[^\w\t\n\r"$%;^\xa0]|_/]]),["mumps"]); 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-n.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/, 3 | a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, 4 | a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]); 5 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-pascal.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^'(?:[^\n\r'\\]|\\.)*(?:'|$)/,a,"'"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^\(\*[\S\s]*?(?:\*\)|$)|^{[\S\s]*?(?:}|$)/,a],["kwd",/^(?:absolute|and|array|asm|assembler|begin|case|const|constructor|destructor|div|do|downto|else|end|external|for|forward|function|goto|if|implementation|in|inline|interface|interrupt|label|mod|not|object|of|or|packed|procedure|program|record|repeat|set|shl|shr|then|to|type|unit|until|uses|var|virtual|while|with|xor)\b/i,a], 3 | ["lit",/^(?:true|false|self|nil)/i,a],["pln",/^[a-z][^\W_]*/i,a],["lit",/^(?:\$[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)/i,a,"0123456789"],["pun",/^.[^\s\w$'./@]*/,a]]),["pascal"]); 4 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-proto.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); 2 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-r.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^'\\]|\\[\S\s])*(?:'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])/],["lit",/^0[Xx][\dA-Fa-f]+([Pp]\d+)?[Li]?/],["lit",/^[+-]?(\d+(\.\d+)?|\.\d+)([Ee][+-]?\d+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|\d+))(?![\w.])/], 2 | ["pun",/^(?:<>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|[!*+/^]|%.*?%|[$=@~]|:{1,3}|[(),;?[\]{}])/],["pln",/^(?:[A-Za-z]+[\w.]*|\.[^\W\d][\w.]*)(?![\w.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-rd.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["lit",/^\\(?:cr|l?dots|R|tab)\b/],["kwd",/^\\[@-Za-z]+/],["kwd",/^#(?:ifn?def|endif)/],["pln",/^\\[{}]/],["pun",/^[()[\]{}]+/]]),["Rd","rd"]); 2 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-scala.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/,null,'"'],["lit",/^`(?:[^\n\r\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&(--:-@[-^{-~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/],["lit",/^'[$A-Z_a-z][\w$]*(?![\w$'])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/], 2 | ["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i],["typ",/^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/],["pln",/^[$A-Z_a-z][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]); 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-tcl.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^{+/,a,"{"],["clo",/^}+/,a,"}"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/,a],["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit", 3 | /^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["tcl"]); 4 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-tex.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["kwd",/^\\[@-Za-z]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[()=[\]{}]+/]]),["latex","tex"]); 2 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-vhdl.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["str",/^(?:[box]?"(?:[^"]|"")*"|'.')/i],["com",/^--[^\n\r]*/],["kwd",/^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i, 2 | null],["typ",/^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i,null],["typ",/^'(?:active|ascending|base|delayed|driving|driving_value|event|high|image|instance_name|last_active|last_event|last_value|left|leftof|length|low|path_name|pos|pred|quiet|range|reverse_range|right|rightof|simple_name|stable|succ|transaction|val|value)(?=[^\w-]|$)/i,null],["lit",/^\d+(?:_\d+)*(?:#[\w.\\]+#(?:[+-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:e[+-]?\d+(?:_\d+)*)?)/i], 3 | ["pln",/^(?:[a-z]\w*|\\[^\\]*\\)/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'\xa0-]*/]]),["vhdl","vhd"]); 4 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-wiki.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\d\t a-gi-z\xa0]+/,null,"\t \u00a0abcdefgijklmnopqrstuvwxyz0123456789"],["pun",/^[*=[\]^~]+/,null,"=*~^[]"]],[["lang-wiki.meta",/(?:^^|\r\n?|\n)(#[a-z]+)\b/],["lit",/^[A-Z][a-z][\da-z]+[A-Z][a-z][^\W_]+\b/],["lang-",/^{{{([\S\s]+?)}}}/],["lang-",/^`([^\n\r`]+)`/],["str",/^https?:\/\/[^\s#/?]*(?:\/[^\s#?]*)?(?:\?[^\s#]*)?(?:#\S*)?/i],["pln",/^(?:\r\n|[\S\s])[^\n\r#*=A-[^`h{~]*/]]),["wiki"]); 2 | PR.registerLangHandler(PR.createSimpleLexer([["kwd",/^#[a-z]+/i,null,"#"]],[]),["wiki.meta"]); 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/lang-yaml.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]); 3 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/propose_git.md: -------------------------------------------------------------------------------- 1 | git clone ${url} 2 | cd ${repo} 3 | git checkout -b ${reviewBranch} origin/${integrationBranch} 4 | ... 5 | git push -u origin ${reviewBranch} 6 | 7 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/propose_pt.md: -------------------------------------------------------------------------------- 1 | git clone ${url} 2 | cd ${repo} 3 | pt start ${ticketId} 4 | ... 5 | pt propose 6 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/pages/scripts/wicketHtml5Patch.js: -------------------------------------------------------------------------------- 1 | //This provides a basic patch/hack to allow Wicket 1.4 to support HTML5 input types 2 | 3 | Wicket.Form.serializeInput_original = Wicket.Form.serializeInput; 4 | 5 | Wicket.Form.serializeInput = function(input) 6 | { 7 | if (input.type.toLowerCase() == "date") 8 | { 9 | return Wicket.Form.encode(input.name) + "=" + Wicket.Form.encode(input.value) + "&"; 10 | } 11 | 12 | return Wicket.Form.serializeInput_original(input); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/panels/AccessPolicyPanel.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 |

11 |

12 | 13 |
14 |
15 |
16 | 17 |
18 | 19 |
20 |
21 | 22 |
23 | 24 | 25 |
26 | 27 |
28 |
29 |
30 | 31 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/panels/AvatarImage.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/panels/BooleanChoiceOption.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |
10 |
11 | 12 |
13 |
13 | 14 | 15 |
16 | 17 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/panels/BulletListPanel.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | already specified 9 |
    10 |
  • item
  • 11 |
12 |
13 | -------------------------------------------------------------------------------- /src/main/java/com/gitblit/wicket/panels/ChoiceOption.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |
10 |
11 | 12 |
13 |