git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Sunjay Varma <varma.sunjay@gmail.com>
To: git@vger.kernel.org
Subject: Git GUI Guesses Incorrect Language
Date: Sat, 9 Jul 2016 00:57:33 -0400	[thread overview]
Message-ID: <CAJaQC31Su7NKd46cD81HE2OvC=O09aon12k8HFV29def4BAYfw@mail.gmail.com> (raw)

Here is a screenshot of what I am talking about: http://i.imgur.com/9ZRkeYF.png

This is the `git gui` program.

Just before the first line of my code, it says "C++ source, ASCII text".
That file is a JavaScript/ES6 file. The ".jsx" file extension
signifies that it may also contain Facebook's special JSX syntax
(HTML-like syntax in JavaScript).

Interestingly enough, my other files (http://i.imgur.com/L0qCRO4.png)
seem to get guessed fine. This file is only shown as "ASCII text".
That one file just seems to be a false positive.

Here's the file that gets incorrectly reported as C++:
https://github.com/sunjay/snake/blob/33bb6135b7bc4f6a958c3fdf51162f86e4cdf508/src/models/pathPlan.jsx

Here's the file that is only reported as "ASCII text":
https://github.com/sunjay/snake/blob/33bb6135b7bc4f6a958c3fdf51162f86e4cdf508/src/services/ai.jsx

Both files were unstaged when this occurred. There is no line at the
top for any files that are just modified.

Not a huge deal at all, but still a bug as this code is not C++ at all.

Cheers,
Sunjay

             reply	other threads:[~2016-07-09  4:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-09  4:57 Sunjay Varma [this message]
2016-07-09  6:57 ` Git GUI Guesses Incorrect Language Johannes Sixt
2016-07-09  6:59   ` Sunjay Varma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJaQC31Su7NKd46cD81HE2OvC=O09aon12k8HFV29def4BAYfw@mail.gmail.com' \
    --to=varma.sunjay@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).