Views:
311
Votes: 2
Tag :
diff
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1302074
Title:
When does diff use | in a side by side diff?
ID:
/2020/12/22/When-does-diff-use-_-in-a-side-by-side-diff_
Created:
December 22, 2020
Edited: March 22, 2022
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
This is the best description of “incomplete line” I could find:
When the last line of a file ends with a new line character it is a “complete line”. Otherwise it is an “incomplete line”.
For example, suppose F and G are one-byte files that contain just f and g, respectively. Then diff F G
outputs:
1c1
< f
\ No newline at end of file
---
> g
\ No newline at end of file