Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code in subdirectory #1055

Closed
1 task done
sascha-andres opened this issue May 12, 2023 · 3 comments
Closed
1 task done

Code in subdirectory #1055

sascha-andres opened this issue May 12, 2023 · 3 comments

Comments

@sascha-andres
Copy link

Duplicates

  • I have searched the existing issues

Current behavior 😯

Currently I do get an error when changing to my SQL repository:

Error: Could not find any source code in this repository

Expected behavior 🤔

Show SQL as code

Steps to reproduce 🕹

Create a git repository with this layout:

…/test on  main 🐟 ✓  tree
.
├── README.md
└── subdir
    └── test.sql

2 directories, 2 files

Change to that directory

Additional context/Screenshots 🔦

No response

Possible Solution 💡

No response

@sascha-andres
Copy link
Author

Actually created above repo as repro, version 2.17.1

@spenserblack
Copy link
Collaborator

Right now SQL is marked as data, not a programming language, so it has to be explicitly shown with a CLI option.

If there's further confusion, perhaps it should be marked as a programming language 🤔

@sascha-andres
Copy link
Author

Depends on your use case. In my case it is a historic collection of administrative statements and queries for data (re)search.

If you do a lot of procedures and/or triggers SQL can be viewed as a programming language (differing in dialect, though)

As I can go with passing -T easily and this is opinionated, I will close this ticket with this comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants