AD S <a...@radianweb.com.au> writes: > On Monday, January 9, 2017 at 9:04:59 AM UTC+10, Magnus Therning wrote: >> >> >> AD S <ad...@radianweb.com.au <javascript:>> writes: >> >> > Hi, sorry for the delay in reply. >> > >> > I'm not sure what you mean sorry. Can you extrapolate? >> >> Operating systems make use of different line endings in text documents, >> see https://en.wikipedia.org/wiki/Newline. >> >> Since git deals with text documents but doesn't have any opinion on >> newline it's not unheard of newline confusion when documents are created >> and checked in on one system (e.g. Windows) and later pulled over to >> another system (e.g. Linux). There are numerous resources on this, e.g. >> https://help.github.com/articles/dealing-with-line-endings/ > > Sorry I don't understand. > > Am I meant to go through all this other code and ensure it had line > breaks at the end?
Sorry for being unclear. No, when you notice that git thinks you've made changes when you think it shouldn't, then you look at the differences git sees (`git diff`) and see if the differences are the line endings. This is the first step. If the behaviour is triggered by line endings changing you'll have to decide then what to do about it to avoid it in the future. /M -- Magnus Therning OpenPGP: 0x927912051716CE39 email: mag...@therning.org jabber: mag...@therning.org twitter: magthe http://therning.org/magnus Finagle's Fifth Law: Always draw your curves, then plot your readings. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: PGP signature