@matheusbsbs / matheus-bagliano / commits / e54a1bd122
Fork 0

git-gui: Ignore 'No newline at end of file' marker line.

If one or both versions of the file don't have a newline at the end of the file we get a line telling us so in the diff output. This shouldn't be tagged, nor should it generate a warning about not being tagged. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Jan 22, 2007 at 19:18 UTC e54a1bd122007af30fcf174a57f892157501673f
1 file changed +1
git-gui.sh
+1
@@ -706,6 +706,7 @@ proc read_diff {fd} {
706 || [string match {mode *} $line]
707 || [string match {new file *} $line]
708 || [string match {deleted file *} $line]
709 + || $line eq {\ No newline at end of file}
710 || [regexp {^\* Unmerged path } $line]} {
711 set tags {}
712 } elseif {$is_3way_diff} {