All of lore.kernel.org
 help / color / mirror / Atom feed
* git blame swallows up lines in case of mixed line endings
@ 2015-02-19 13:48 Sokolov, Konstantin (ext)
  2015-02-21 13:45 ` Torsten Bögershausen
  0 siblings, 1 reply; 6+ messages in thread
From: Sokolov, Konstantin (ext) @ 2015-02-19 13:48 UTC (permalink / raw)
  To: 'git@vger.kernel.org'

Hi Folks,

I encounter unexpected behavior in the following case:

file content:

line1<CR><LF>
line2<CR>
line3<CR><LF>
line4

This is what I get as console output (on Windows):

> git blame -s file.txt
7db36436 1) line1
line3436 2) line2
7db36436 3) line4

This is the real content:

> git blame -s file.txt > blame.txt

blame.txt opened in Notepad++:

7db36436 1) line1 <CR><LF>
7db36436 2) line2 <CR>
line3 <CR><LF>
7db36436 3) line4 <LF>

Admittedly, very stupid editors, such as Windows Notepad, cannot handle mixed line endings as well. But is this also the way git blame should behave?

Kind regards
Konstantin

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-23 20:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-19 13:48 git blame swallows up lines in case of mixed line endings Sokolov, Konstantin (ext)
2015-02-21 13:45 ` Torsten Bögershausen
2015-02-23 11:50   ` AW: " Sokolov, Konstantin (ext)
2015-02-23 18:44   ` Junio C Hamano
2015-02-23 19:09     ` AW: " Sokolov, Konstantin (ext)
2015-02-23 20:27       ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.