public this repo is viewable by everyone
Fork of Caged/gitnub
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/benstiglitz/gitnub.git
Use author instead of committer for names, emails and dates
Caged (author)
2 months ago
commit  4f75917dc36de9d8827f378600b1d821931f09bc
tree    e33b175afffec6d7719347a01951848287308536
parent  7567192fdbab8b1b1591401238e9bac7f2af89dc
...
94
95
96
97
98
 
 
99
100
101
...
112
113
114
115
116
 
 
117
118
 
119
120
 
121
122
123
...
94
95
96
 
 
97
98
99
100
101
...
112
113
114
 
 
115
116
117
 
118
119
 
120
121
122
123
0
@@ -94,8 +94,8 @@ class CommitsController < OSX::NSObject
0
   objc_method :tableView_willDisplayCell_forTableColumn_row, 'v@:@@@i'
0
   def tableView_willDisplayCell_forTableColumn_row(table_view, cell, table_column, row)
0
     commit = @commits[row]
0
- cell.subtitle = %(by #{commit.committer.name} on #{commit.committed_date.strftime("%A, %b %d, %I:%M %p")})
0
- cell.gravatarImage = @icons[commit.committer.email]
0
+ cell.subtitle = %(by #{commit.author.name} on #{commit.authored_date.strftime("%A, %b %d, %I:%M %p")})
0
+ cell.gravatarImage = @icons[commit.author.email]
0
   end
0
   
0
   def webView_didFinishLoadForFrame(view, frame)
0
@@ -112,12 +112,12 @@ class CommitsController < OSX::NSObject
0
     set_html("message", active_commit.message.gsub("\n", "<br />"))
0
     set_html("hash", active_commit.id)
0
 
0
- if Time.now.day == active_commit.committed_date.day
0
- cdate = active_commit.committed_date.strftime("Today %I:%M %p")
0
+ if Time.now.day == active_commit.authored_date.day
0
+ cdate = active_commit.authored_date.strftime("Today, %I:%M %p")
0
     else
0
- cdate = active_commit.committed_date.strftime("%A, %B %d %I:%M %p")
0
+ cdate = active_commit.authored_date.strftime("%A, %B %d %I:%M %p")
0
     end
0
- set_html("date", cdate)
0
+ set_html("date", "#{cdate} by #{active_commit.author.name}")
0
 
0
     file_list = doc.getElementById('files')
0
     diff_list = doc.getElementById('diffs')

Comments

    No one has commented yet.