<commit_before># Dolt - The Git project browser

Dolt is a stand-alone Git repository browser. It can be used to explore repos in
your browser of choice and features syntax highlighting with
[Pygments](http://pygments.org/),
[Markdown](http://daringfireball.net/projects/markdown/)/[org-mode](http://orgmode.org/)/[+++](https://github.com/github/markup/)
rendering, commit log and blame.

Dolt is also a library, designed to render Git trees, blobs, commit log and
blame. It can render said views with or without a layout, or you can provide
your own templates (through [Tilt](https://github.com/rtomayko/tilt/)). You can
also provide your own rendering implementation to render other formats than
templates outputting HTML.

Dolt is the implementation of the next generation repo browser to be used in the
[Gitorious](http://gitorious.org) software.

## Installing Dolt

To install `dolt` you need Ruby, RubyGems and Python development files. The
Python development files are required to support Pygments syntax highlighting.

### Systems using apt (Debian/Ubuntu, others)

    # 1) Install Ruby (skip if you already have Ruby installed)
    sudo apt-get install ruby

    # 2) Install Python development files
    sudo apt-get install python-dev

    # 3) Install dolt. This may or may not require the use of sudo, depending on
    #    how you installed Ruby.
    sudo gem install dolt

### Systems using yum (Fedora/CentOS/RedHat, others)

    # 1) Install Ruby (skip if you already have Ruby installed)
    sudo yum install ruby

    # 2) Install Python development files
    sudo yum install python-devel

    # 3) Install dolt. This may or may not require the use of sudo, depending on
    #    how you installed Ruby.
    sudo gem install dolt

# The Dolt CLI

The `dolt` library installs a CLI that can be used to quickly browse either a
single (typically the current) repository, or multiple repositories.

## Browsing a single repository

In a git repository, issue the following command:

    $ dolt .

Then open a browser at [http://localhost:3000](http://localhost:3000). You will
be redirected to the root tree, and can browse the repository. To view trees and
blobs at specific refs, use the URL. A branch/tag selector will be added later.

## Browsing multiple repositories

The idea is that eventually, `dolt` should be able to serve up all Git
repositories managed by your Gitorious server. It does not yet do that, because
there currently is no "repository resolver" that understands the hashed paths
Gitorious uses.

Meanwhile, if you have a directory that contains multiple git repositories, you
can browse all of them through the same process by doing:

    $ dolt /path/to/repos

Now [http://localhost:3000/repo](http://localhost:3000/repo) will allow you to
browse the `/path/repos/repo` repository. As `dolt` matures, there will be a
listing of all repositories and more.

# License

Dolt is free software licensed under the
[GNU Affero General Public License (AGPL)](http://www.gnu.org/licenses/agpl-3.0.html).
Dolt is developed as part of the Gitorious project.<commit_msg>Update install instructions in Readme<commit_after># Dolt - The Git project browser

Dolt is a stand-alone Git repository browser. It can be used to explore repos in
your browser of choice and features syntax highlighting with
[Pygments](http://pygments.org/),
[Markdown](http://daringfireball.net/projects/markdown/)/[org-mode](http://orgmode.org/)/[+++](https://github.com/github/markup/)
rendering, commit log and blame.

Dolt is also a library, designed to render Git trees, blobs, commit log and
blame. It can render said views with or without a layout, or you can provide
your own templates (through [Tilt](https://github.com/rtomayko/tilt/)). You can
also provide your own rendering implementation to render other formats than
templates outputting HTML.

Dolt is the implementation of the next generation repo browser to be used in the
[Gitorious](http://gitorious.org) software.

## Installing Dolt

To install `dolt` you need Ruby, RubyGems and Python development files. The
Python development files are required to support Pygments syntax highlighting.

Note: Dolt uses [libgit2](http://libgit2.github.com) and its Ruby bindings,
[Rugged](http://github.com/libgit2/rugged) through
[em-rugged](http://gitorious.org/gitorious/em-rugged) for Git access where
feasible. Currently, ``EMRugged`` relies on a version of `Rugged` that is not
yet released, so you have to build it yourself.
[See em-rugged instructions](http://github.com/cjohansen/em-rugged).

### Systems using apt (Debian/Ubuntu, others)

    # 1) Install Ruby (skip if you already have Ruby installed)
    sudo apt-get install ruby

    # 2) Install Python development files
    sudo apt-get install python-dev

    # 3) Install dolt. This may or may not require the use of sudo, depending on
    #    how you installed Ruby. This step assumes that you already built and
    #    installed em-rugged as explained above.
    sudo gem install dolt

### Systems using yum (Fedora/CentOS/RedHat, others)

    # 1) Install Ruby (skip if you already have Ruby installed)
    sudo yum install ruby

    # 2) Install Python development files
    sudo yum install python-devel

    # 3) Install dolt. This may or may not require the use of sudo, depending on
    #    how you installed Ruby. This step assumes that you already built and
    #    installed em-rugged as explained above.
    sudo gem install dolt

# The Dolt CLI

The `dolt` library installs a CLI that can be used to quickly browse either a
single (typically the current) repository, or multiple repositories.

## Browsing a single repository

In a git repository, issue the following command:

    $ dolt .

Then open a browser at [http://localhost:3000](http://localhost:3000). You will
be redirected to the root tree, and can browse the repository. To view trees and
blobs at specific refs, use the URL. A branch/tag selector will be added later.

## Browsing multiple repositories

The idea is that eventually, `dolt` should be able to serve up all Git
repositories managed by your Gitorious server. It does not yet do that, because
there currently is no "repository resolver" that understands the hashed paths
Gitorious uses.

Meanwhile, if you have a directory that contains multiple git repositories, you
can browse all of them through the same process by doing:

    $ dolt /path/to/repos

Now [http://localhost:3000/repo](http://localhost:3000/repo) will allow you to
browse the `/path/repos/repo` repository. As `dolt` matures, there will be a
listing of all repositories and more.

## Markup rendering

Dolt uses the [``GitHub::Markup``](https://github.com/github/markup/) library to
render certain markup formats as HTML. Dolt does not have a hard dependency on
any of the required gems to actually render markups, so see the
[``GitHub::Markup`` docs](https://github.com/github/markup/) for information on
what and how to install support for various languages.

# License

Dolt is free software licensed under the
[GNU Affero General Public License (AGPL)](http://www.gnu.org/licenses/agpl-3.0.html).
Dolt is developed as part of the Gitorious project.
{'fraction_non_alphanumeric': 0.07715834839427221, 'fraction_numerical': 0.007090226609203392, 'mean_word_length': 4.023743016759776, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6828319', 'n_tokens_mistral': 2096, 'n_tokens_neox': 1929, 'n_words': 956}