File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -1155,20 +1155,11 @@ static void graph_padding_line(struct git_graph *graph, struct strbuf *sb)
1155
1155
*/
1156
1156
for (i = 0 ; i < graph -> num_columns ; i ++ ) {
1157
1157
struct column * col = & graph -> columns [i ];
1158
- struct commit * col_commit = col -> commit ;
1159
- if (col_commit == graph -> commit ) {
1160
- strbuf_write_column (sb , col , '|' );
1161
-
1162
- if (graph -> num_parents < 3 )
1163
- strbuf_addch (sb , ' ' );
1164
- else {
1165
- int num_spaces = ((graph -> num_parents - 2 ) * 2 );
1166
- strbuf_addchars (sb , ' ' , num_spaces );
1167
- }
1168
- } else {
1169
- strbuf_write_column (sb , col , '|' );
1158
+ strbuf_write_column (sb , col , '|' );
1159
+ if (col -> commit == graph -> commit && graph -> num_parents > 2 )
1160
+ strbuf_addchars (sb , ' ' , (graph -> num_parents - 2 ) * 2 );
1161
+ else
1170
1162
strbuf_addch (sb , ' ' );
1171
- }
1172
1163
}
1173
1164
1174
1165
graph_pad_horizontally (graph , sb , graph -> num_columns );
You can’t perform that action at this time.
0 commit comments