graph API: fix extra space during pre_commit_line state
An extra space is being inserted between the "commit" column and all of
the successive edges.  Remove this space.  This regression was
introduced by 427fc5b.
Signed-off-by: Allan Caffee <allan.caffee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
			
			
				maint
			
			
		
							parent
							
								
									7b1d6269ee
								
							
						
					
					
						commit
						36a31feae2
					
				
							
								
								
									
										2
									
								
								graph.c
								
								
								
								
							
							
						
						
									
										2
									
								
								graph.c
								
								
								
								
							|  | @ -728,7 +728,7 @@ static void graph_output_pre_commit_line(struct git_graph *graph, | ||||||
| 			seen_this = 1; | 			seen_this = 1; | ||||||
| 			strbuf_write_column(sb, col, '|'); | 			strbuf_write_column(sb, col, '|'); | ||||||
| 			strbuf_addf(sb, "%*s", graph->expansion_row, ""); | 			strbuf_addf(sb, "%*s", graph->expansion_row, ""); | ||||||
| 			chars_written += 2 + graph->expansion_row; | 			chars_written += 1 + graph->expansion_row; | ||||||
| 		} else if (seen_this && (graph->expansion_row == 0)) { | 		} else if (seen_this && (graph->expansion_row == 0)) { | ||||||
| 			/* | 			/* | ||||||
| 			 * This is the first line of the pre-commit output. | 			 * This is the first line of the pre-commit output. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Allan Caffee
						Allan Caffee