9 # Check compatibility with pretty format override
10 set log-options = --date=short
15 pretty = format:'%C(bold blue)%H%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
20 :save-display log-pretty-format-override.screen
22 :toggle log-options --pretty=raw
23 :save-display log-pretty-raw.screen
25 :toggle log-options --pretty=full
26 :save-display log-pretty-full.screen
28 :toggle cmdline-args --pretty=fuller
30 :save-display log-pretty-fuller.screen
37 assert_equals
'log-pretty-format-override.screen' <<EOF
38 commit 5cb3412a5e06e506840495b91acc885037a48b72
39 Refs: [master], {origin/master}, {origin/HEAD}
40 Author: Max Power <power123@example.org>
45 commit 2843bfd58b98c7e23ab91e51ffa4db4f8e27c9a4
46 Author: Jørgen Thygesen Brahe <brache@example.dk>
51 commit 8d53d6a41f8540749c0db5d0b53e48d2f178dce4
52 Author: 作者 <zuozhea@example.ch>
56 [log] 5cb3412a5e06e506840495b91acc885037a48b72 - line 1 of 301 5%
59 assert_equals
'log-pretty-raw.screen' <<EOF
60 commit 5cb3412a5e06e506840495b91acc885037a48b72
61 Refs: [master], {origin/master}, {origin/HEAD}
62 tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
63 parent 2843bfd58b98c7e23ab91e51ffa4db4f8e27c9a4
64 author Max Power <power123@example.org> 1270618660 +0000
65 committer Committer <c.ommitter@example.net> 1270618660 +0000
69 commit 2843bfd58b98c7e23ab91e51ffa4db4f8e27c9a4
70 tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
71 parent 8d53d6a41f8540749c0db5d0b53e48d2f178dce4
72 author Jørgen Thygesen Brahe <brache@example.dk> 1269882930 +0000
73 committer Committer <c.ommitter@example.net> 1269882930 +0000
77 commit 8d53d6a41f8540749c0db5d0b53e48d2f178dce4
78 [log] 5cb3412a5e06e506840495b91acc885037a48b72 - line 1 of 400 4%
81 assert_equals
'log-pretty-full.screen' <<EOF
82 commit 5cb3412a5e06e506840495b91acc885037a48b72
83 Refs: [master], {origin/master}, {origin/HEAD}
84 Author: Max Power <power123@example.org>
85 Commit: Committer <c.ommitter@example.net>
89 commit 2843bfd58b98c7e23ab91e51ffa4db4f8e27c9a4
90 Author: Jørgen Thygesen Brahe <brache@example.dk>
91 Commit: Committer <c.ommitter@example.net>
95 commit 8d53d6a41f8540749c0db5d0b53e48d2f178dce4
96 Author: 作者 <zuozhea@example.ch>
97 Commit: Committer <c.ommitter@example.net>
100 [log] 5cb3412a5e06e506840495b91acc885037a48b72 - line 1 of 301 5%
103 assert_equals
'log-pretty-fuller.screen' <<EOF
104 commit 5cb3412a5e06e506840495b91acc885037a48b72
105 Refs: [master], {origin/master}, {origin/HEAD}
106 Author: Max Power <power123@example.org>
107 AuthorDate: Wed Apr 7 05:37:40 2010 +0000
108 Commit: Committer <c.ommitter@example.net>
109 CommitDate: Wed Apr 7 05:37:40 2010 +0000
113 commit 2843bfd58b98c7e23ab91e51ffa4db4f8e27c9a4
114 Author: Jørgen Thygesen Brahe <brache@example.dk>
115 AuthorDate: Mon Mar 29 17:15:30 2010 +0000
116 Commit: Committer <c.ommitter@example.net>
117 CommitDate: Mon Mar 29 17:15:30 2010 +0000
121 commit 8d53d6a41f8540749c0db5d0b53e48d2f178dce4
122 [log] 5cb3412a5e06e506840495b91acc885037a48b72 - line 1 of 401 4%