blob: a97cae15fc4e203d86f73ec7fedf09ed6199c121 [file] [log] [blame]
Dave Borowitzeb794ea2012-11-12 14:48:15 -08001Gitiles - A simple JGit repository browser
2==========================================
3
4Gitiles is a simple repository browser for Git repositories, built on JGit. Its
5guiding principle is simplicity: it has no formal access controls, no write
6access, no fancy Javascript, etc.
Eric Seidel48816fb2013-06-11 17:17:50 -07007
8
9BUILDING
10
11Gitiles requires Maven (http://maven.apache.org/) to build.
12
13sudo apt-get install maven
14cd gitiles
15mvn compile
16
17
18TESTING
19
20cd gitiles
21mvn package
22./tools/run_dev.sh
23open http://localhost:8080/ to view your local copy of gitiles.
24
25
26ECLIPSE
27
28If you'd like to use Eclipse to edit Gitiles, you will need the m2e
29Eclipse plugin: http://eclipse.org/m2e/
30
31File -> Import -> Maven -> Existing Maven Project
32
33Make sure that all 4 projects are imported:
34gitiles-parent, gitiles-dev, gitiles-servlet, gitiles-war
35
36
37CODE REVIEW
38
39Gitiles uses Gerrit for code review:
40https://gerrit-review.googlesource.com/
41
42Gitiles uses the "git push" workflow described here:
43http://gerrit.googlecode.com/svn/documentation/2.0/user-upload.html
44With the server https://gerrit.googlesource.com/gitiles
45You'll need a password from: https://gerrit.googlesource.com/new-password
46
47Gerrit depends on "Change-Id" annotations in your commit message.
48If you try to push a commit without one, it will explain how to
49install the proper git-hook:
50
51curl -Lo `git rev-parse --git-dir`/hooks/commit-msg \
52 https://gerrit-review.googlesource.com/tools/hooks/commit-msg
53chmod +x `git rev-parse --git-dir`/hooks/commit-msg
54
55Before you create your local commit (which you'll push to Gerrit)
56you will need to set your email to match your Gerrit account:
57git config --local --add user.email [email protected]
58
59Normally you'll create code reviews for pushes to master:
60git push origin HEAD:refs/for/master