Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename log data's parameter key

comment to subject
  • Loading branch information...
commit 425bb8892098cf6534f776d7db731d242741f189 1 parent 12d8780
@kmnk authored
View
2  autoload/giti/log.vim
@@ -67,7 +67,7 @@ function! s:build_log_data(line)"{{{
\ 'parent_hash' : remove(splited, 0),
\ 'author' : s:build_user_data(remove(splited, 0)),
\ 'committer' : s:build_user_data(remove(splited, 0)),
-\ 'comment' : join(splited, ':'),
+\ 'subject' : remove(splited, 0),
\ }
endfunction"}}}
View
2  autoload/unite/kinds/giti/log.vim
@@ -37,7 +37,7 @@ function! s:kind.action_table.view.func(candidate)"{{{
\ data.author.name, data.author.mail, data.author.date))
call giti#print(printf('Committer: %s <%s> - %s',
\ data.committer.name, data.committer.mail, data.committer.date))
- call giti#print( 'Comment: ' . data.comment)
+ call giti#print( 'Subject: ' . data.subject)
endfunction"}}}
let s:kind.action_table.diff = {
View
4 autoload/unite/sources/giti/log.vim
@@ -46,7 +46,7 @@ function! s:build_word(val)"{{{
\ a:val.hash[0:6],
\ a:val.author.name,
\ a:val.author.date,
-\ a:val.comment
+\ a:val.subject
\ )
endfunction"}}}
function! s:build_title()"{{{
@@ -55,7 +55,7 @@ function! s:build_title()"{{{
\ 'hash',
\ 'author',
\ 'relative date',
-\ 'comment')
+\ 'subject')
endfunction"}}}
" }}}
View
6 test/autoload/giti/test_log.vim
@@ -49,7 +49,7 @@ function! s:tc.test_list()"{{{
\ 'parent_hash' : 'bbbb',
\ 'author' : {'name' : 'cccc', 'mail' : 'cc@cc.cc', 'date' : 'cc/cc/cc cc:cc:cc'},
\ 'committer' : {'name' : 'dddd', 'mail' : 'dd@dd.dd', 'date' : 'dd/dd/dd dd:dd:dd'},
-\ 'comment' : 'eeee',
+\ 'subject' : 'eeee',
\ }])
call self.assert_match(
\ 'log -1234 --graph --date=relative --pretty=format:".\+" ',
@@ -61,7 +61,7 @@ function! s:tc.test_list()"{{{
\ 'parent_hash' : 'bbbb',
\ 'author' : {'name' : 'cccc', 'mail' : 'cc@cc.cc', 'date' : 'cc/cc/cc cc:cc:cc'},
\ 'committer' : {'name' : 'dddd', 'mail' : 'dd@dd.dd', 'date' : 'dd/dd/dd dd:dd:dd'},
-\ 'comment' : 'eeee',
+\ 'subject' : 'eeee',
\ }])
call self.assert_match(
\ 'log -4321 --graph --date=relative --pretty=format:".\+" ',
@@ -73,7 +73,7 @@ function! s:tc.test_list()"{{{
\ 'parent_hash' : 'bbbb',
\ 'author' : {'name' : 'cccc', 'mail' : 'cc@cc.cc', 'date' : 'cc/cc/cc cc:cc:cc'},
\ 'committer' : {'name' : 'dddd', 'mail' : 'dd@dd.dd', 'date' : 'dd/dd/dd dd:dd:dd'},
-\ 'comment' : 'eeee',
+\ 'subject' : 'eeee',
\ }])
call self.assert_match(
\ 'log -1234 --graph --date=relative --pretty=format:".\+" hoge',
View
6 test/autoload/unite/kinds/giti/test_log.vim
@@ -39,7 +39,7 @@ function! s:tc.test_kind_action_view()"{{{
\ 'parent_hash' : 'fuga',
\ 'author' : {'name' : 'foo', 'mail' : 'bar', 'date' : 'baz'},
\ 'committer' : {'name' : 'foo', 'mail' : 'bar', 'date' : 'baz'},
-\ 'comment' : 'piyo',
+\ 'subject' : 'piyo',
\ }
\ }
call view.func(candidate)
@@ -72,7 +72,7 @@ function! s:tc.test_kind_action_diff()"{{{
\ "parent_hash" : "fuga" . v:val,
\ "author" : {"name" : "foo" . v:val, "mail" : "bar" . v:val, "date" : "baz" . v:val},
\ "committer" : {"name" : "foo" . v:val, "mail" : "bar" . v:val, "date" : "baz" . v:val},
-\ "comment" : "piyo" . v:val,
+\ "subject" : "piyo" . v:val,
\ },
\ "action__file" : "qux" . v:val
\ }
@@ -155,7 +155,7 @@ function! s:tc.test_kind_action_vimdiff()"{{{
\ "parent_hash" : "fuga" . v:val,
\ "author" : {"name" : "foo" . v:val, "mail" : "bar" . v:val, "date" : "baz" . v:val},
\ "committer" : {"name" : "foo" . v:val, "mail" : "bar" . v:val, "date" : "baz" . v:val},
-\ "comment" : "piyo" . v:val,
+\ "subject" : "piyo" . v:val,
\ },
\ "action__file" : "qux" . v:val
\ }

0 comments on commit 425bb88

Please sign in to comment.
Something went wrong with that request. Please try again.