General Questions
git diff
and the GNU diffutils
being the most popular ones.
Common diffs treat source code as text files, and generate a visualization based on a simple line-by-line comparison. This is far from perfect: There are many types of code changes, such as inserting line breaks between function arguments, that don’t have any effect on the software but are displayed as changes. This adds a lot of visual noise and makes it difficult for developers to spot the relevant changes.
In contrary, a semantic diff understands the meaning of the change. It can, for example, distinguish between relevant and irrelevant changes, and recognizes when changes correspond to a typical refactoring pattern, like moving code or renaming a function. Instead of showing lot of changed lines, a semantic diff will show an abstract description of the change, e.g., that a function has been renamed.
SemanticDiff works similar to a compiler or interpreter. Given two source codes to compare, they are first converted to Abstract Syntax Trees (ASTs). This step adds additional information that enables us to filter out various style changes, like adding optional semicolons or commas in an array initialization.
In a second step, we match both trees to find out what has changed. Additional rules are applied to filter out more complex invariances. Afterwards the detected changes are translated back into a text diff representation.
SemanticDiff currently supports most programming languages relevant for web development. We plan to add more languages based on the user feedback we receive. Supported programming languages and data exchange formats are:
- C#
- CSS / SCSS
- Go
- HTML
- Java
- JavaScript / JSX
- JSON
- PO (gettext)
- Python
- Rust
- Swift (GitHub App only)
- TypeScript / TSX
- Vue
GitHub App
Yes. In order to review private pull requests with SemanticDiff two requirements must be met:
- An admin of the organization or the repository owner needs to install our GitHub App on the repository.
- You need to login via GitHub OAuth and have access to the repository on GitHub.
SemanticDiff uses OAuth to enforce GitHub permission checks and to allow posting of review comments through our interface.
No. Logging in via GitHub does not grant us access to your private repositories or gists. SemanticDiff can only access repositories that are public or have our GitHub App installed.
The only information SemanticDiff can access after logging in is your public profile information and your email address.
Billing
Installations
in the navigation bar. Select the installation you wish to manage and you should see a button to start a trial.
Installations
in the navigation bar. Here you will see all the GitHub App installations that you can manage. Click on one to view or change your subscription details.
You have either uninstalled the GitHub App or you are no longer an admin of the GitHub organization that installed the App.
If you have uninstalled the GitHub App, you will need to reinstall it so that SemanticDiff can use GitHub’s permissions system to determine whether you should be able to manage the GitHub installation and its subscription.
If you don’t want to reinstall the GitHub App or if your payment information is being used by an organization you no longer belong to, please contact our support team at support@semanticdiff.com to change your subscription.
Installations
in the navigation bar. Here you will see all the GitHub App installations that you can manage. Select the one you want to change and click More -> Change Number Of Seats
. Note that changing the number of seats is only supported if you have a paid plan, the Free plan is limited to 3 seats. You can change your plan by clicking Switch Plan
in the installation management interface.
Changes to the number of seats will take effect immediately and you will be charged prorated to the minute. With an annual billing cycle, you will receive a separate invoice, while changes to subscriptions with monthly billing will be handled as part of your next regular invoice.
If you reduce the number of seats, you will receive a credit which will be deducted from future invoices.
Your question was not answered?
Do not hesitate to contact us if you have any questions or feedback.
We look forward to hearing from you.