{"thread":{"id":"42806","subject":"Git GUI Guesses Incorrect Language","startedAt":"2016-07-09T04:57:42Z","lastAt":"2016-07-09T06:59:47Z","messageCount":3,"participants":["Sunjay Varma","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"291082","messageId":"CAJaQC31Su7NKd46cD81HE2OvC=O09aon12k8HFV29def4BAYfw@mail.gmail.com","threadId":"42806","inReplyTo":null,"subject":"Git GUI Guesses Incorrect Language","fromName":"Sunjay Varma","fromEmail":"varma.sunjay@gmail.com","sentAt":"2016-07-09T04:57:33Z","receivedAt":"2016-07-09T04:57:42Z","isPatch":false,"sender":{"key":"varma.sunjay@gmail.com","avatar":null},"body":"Here is a screenshot of what I am talking about: http://i.imgur.com/9ZRkeYF.png\n\nThis is the `git gui` program.\n\nJust before the first line of my code, it says \"C++ source, ASCII text\".\nThat file is a JavaScript/ES6 file. The \".jsx\" file extension\nsignifies that it may also contain Facebook's special JSX syntax\n(HTML-like syntax in JavaScript).\n\nInterestingly enough, my other files (http://i.imgur.com/L0qCRO4.png)\nseem to get guessed fine. This file is only shown as \"ASCII text\".\nThat one file just seems to be a false positive.\n\nHere's the file that gets incorrectly reported as C++:\nhttps://github.com/sunjay/snake/blob/33bb6135b7bc4f6a958c3fdf51162f86e4cdf508/src/models/pathPlan.jsx\n\nHere's the file that is only reported as \"ASCII text\":\nhttps://github.com/sunjay/snake/blob/33bb6135b7bc4f6a958c3fdf51162f86e4cdf508/src/services/ai.jsx\n\nBoth files were unstaged when this occurred. There is no line at the\ntop for any files that are just modified.\n\nNot a huge deal at all, but still a bug as this code is not C++ at all.\n\nCheers,\nSunjay\n"},{"id":"291093","messageId":"5780A06A.8030901@kdbg.org","threadId":"42806","inReplyTo":"CAJaQC31Su7NKd46cD81HE2OvC=O09aon12k8HFV29def4BAYfw@mail.gmail.com","subject":"Re: Git GUI Guesses Incorrect Language","fromName":"Johannes Sixt","fromEmail":"j6t@kdbg.org","sentAt":"2016-07-09T06:57:46Z","receivedAt":"2016-07-09T06:57:53Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 09.07.2016 um 06:57 schrieb Sunjay Varma:\n> Just before the first line of my code, it says \"C++ source, ASCII text\".\n> That file is a JavaScript/ES6 file. The \".jsx\" file extension\n> signifies that it may also contain Facebook's special JSX syntax\n> (HTML-like syntax in JavaScript).\n\nGit-gui just delegates to the 'file' command. What does\n\n   file src/models/pathPlan.jsx src/services/ai.jsx\n\nreport? If that guesses wrongly in the same way, then the authors of the \nfile command are the right address for your complaint.\n\n-- Hannes\n\n"},{"id":"291094","messageId":"CAJaQC330QPR9h_iZW1amRxkJ8WGnoujdKA8fN49OWdMKUp6gTw@mail.gmail.com","threadId":"42806","inReplyTo":"5780A06A.8030901@kdbg.org","subject":"Re: Git GUI Guesses Incorrect Language","fromName":"Sunjay Varma","fromEmail":"varma.sunjay@gmail.com","sentAt":"2016-07-09T06:59:42Z","receivedAt":"2016-07-09T06:59:47Z","isPatch":false,"sender":{"key":"varma.sunjay@gmail.com","avatar":null},"body":"Seems like a file command issue then.\n\nHere's the 'file' command output:\n\n  $ file src/models/pathPlan.jsx src/services/ai.jsx\n  src/models/pathPlan.jsx: C++ source, ASCII text\n  src/services/ai.jsx:     ASCII text\n\nSunjay\n\nOn Sat, Jul 9, 2016 at 2:57 AM, Johannes Sixt <j6t@kdbg.org> wrote:\n> Am 09.07.2016 um 06:57 schrieb Sunjay Varma:\n>>\n>> Just before the first line of my code, it says \"C++ source, ASCII text\".\n>> That file is a JavaScript/ES6 file. The \".jsx\" file extension\n>> signifies that it may also contain Facebook's special JSX syntax\n>> (HTML-like syntax in JavaScript).\n>\n>\n> Git-gui just delegates to the 'file' command. What does\n>\n>   file src/models/pathPlan.jsx src/services/ai.jsx\n>\n> report? If that guesses wrongly in the same way, then the authors of the\n> file command are the right address for your complaint.\n>\n> -- Hannes\n>\n"}]}