mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 00:52:43 +00:00 
			
		
		
		
	 5e28da1aa4
			
		
	
	
		5e28da1aa4
		
	
	
	
	
		
			
			For now this is just a standard implementation of the longest common subsequence algorithm over the lines, except that it doesn't do any coalescing of the lines. This isn't really ideal since we get a single Hunk per changed line, and is definitely something to improve in the future.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			251 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			251 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Mustafa Quraish <mustafa@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include "Hunks.h"
 | |
| 
 | |
| namespace Diff {
 | |
| 
 | |
| Vector<Hunk> from_text(StringView const& old_text, StringView const& new_text);
 | |
| 
 | |
| }
 |