【发布时间】:2016-12-20 02:29:32
【问题描述】:
如果我有以下差异:
diff --git a/file.txt b/file.txt
index abcdef..ghijkl mnopqr
--- a/file.txt
+++ b/file.txt
@@ -2,4 +2,4 @@
-This is a line of code.
\ No newline at end of file
+This is a line of code
我了解I want the newline at the end of the file。但是,从这个差异来看,我的编辑器是在文件末尾添加还是删除换行符?
我不知道 \No newline at end of file 是指我的文本编辑器删除的内容(上图)还是添加的内容(下图)。
【问题讨论】:
标签: git editor newline diff text-editor