11
11
:entire_sha256 ,
12
12
:date ,
13
13
:log ,
14
- :branches ,
14
+ :branch ,
15
15
:diffs ,
16
16
:added_files , :deleted_files , :updated_files ,
17
17
:added_dirs , :deleted_dirs , :updated_dirs ,
@@ -34,7 +34,7 @@ def build(oldrev, newrev, refname)
34
34
info . entire_sha256 = newrev
35
35
info . date = Time . at ( Integer ( git_show ( newrev , format : '%at' ) ) )
36
36
info . log = git_show ( newrev , format : '%B' )
37
- info . branches = [ git ( 'rev-parse' , '--symbolic' , '--abbrev-ref' , refname ) . strip ]
37
+ info . branch = git ( 'rev-parse' , '--symbolic' , '--abbrev-ref' , refname ) . strip
38
38
info . diffs = diffs
39
39
info . added_files = find_files ( diffs , status : :added )
40
40
info . deleted_files = find_files ( diffs , status : :deleted )
@@ -188,7 +188,7 @@ def main(repo_path, to, rest)
188
188
end
189
189
190
190
infos . each do |info |
191
- puts "#{ info . branches . join ( ', ' ) } : #{ info . revision } (#{ info . author } )"
191
+ puts "#{ info . branch } : #{ info . revision } (#{ info . author } )"
192
192
193
193
from = info . author_email
194
194
sendmail ( to , from , make_mail ( to , from , info , viewer_uri : options . viewer_uri ) )
@@ -329,11 +329,10 @@ def make_header(to, from, info)
329
329
end
330
330
331
331
def make_subject ( info )
332
- branches = info . branches
333
332
subject = ''
334
333
subject << "#{ info . author } :"
335
334
subject << " #{ info . revision } "
336
- subject << " (#{ branches . join ( ', ' ) } )" unless branches . empty?
335
+ subject << " (#{ info . branch } )"
337
336
subject << ': '
338
337
subject << info . log . lstrip . lines . first . to_s . strip
339
338
NKF . nkf ( '-WwMq' , subject )
0 commit comments