BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d4059ac9
Commit
d4059ac9
authored
Aug 19, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move graph_commit under gitlab module
parent
05c86fb0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
projects_controller.rb
app/controllers/projects_controller.rb
+2
-2
graph_commit.rb
lib/gitlab/graph_commit.rb
+3
-1
No files found.
app/controllers/projects_controller.rb
View file @
d4059ac9
require
File
.
join
(
Rails
.
root
,
'li
b'
,
'graph_commit'
)
require
Rails
.
root
.
join
(
'lib'
,
'gitla
b'
,
'graph_commit'
)
class
ProjectsController
<
ApplicationController
class
ProjectsController
<
ApplicationController
before_filter
:project
,
except:
[
:index
,
:new
,
:create
]
before_filter
:project
,
except:
[
:index
,
:new
,
:create
]
...
@@ -78,7 +78,7 @@ class ProjectsController < ApplicationController
...
@@ -78,7 +78,7 @@ class ProjectsController < ApplicationController
end
end
def
graph
def
graph
@days_json
,
@commits_json
=
GraphCommit
.
to_graph
(
project
)
@days_json
,
@commits_json
=
G
itlab
::
G
raphCommit
.
to_graph
(
project
)
end
end
def
destroy
def
destroy
...
...
lib/graph_commit.rb
→
lib/g
itlab/g
raph_commit.rb
View file @
d4059ac9
require
"grit"
require
"grit"
class
GraphCommit
module
Gitlab
class
GraphCommit
attr_accessor
:time
,
:space
attr_accessor
:time
,
:space
attr_accessor
:refs
attr_accessor
:refs
...
@@ -178,4 +179,5 @@ class GraphCommit
...
@@ -178,4 +179,5 @@ class GraphCommit
@refs
=
ref_cache
[
@_commit
.
id
]
if
ref_cache
.
include?
(
@_commit
.
id
)
@refs
=
ref_cache
[
@_commit
.
id
]
if
ref_cache
.
include?
(
@_commit
.
id
)
@refs
||=
[]
@refs
||=
[]
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment